difit 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-BVVFshvc.css +1 -0
- package/dist/client/assets/index-a1BG8qLD.js +67 -0
- package/dist/client/assets/{prism-csharp-wq1C19Kt.js → prism-csharp-B9sOWZbP.js} +1 -1
- package/dist/client/assets/{prism-hcl-DG9S9drO.js → prism-hcl-DyoEoP5U.js} +1 -1
- package/dist/client/assets/{prism-java-C8aB84FB.js → prism-java-C8aayYea.js} +1 -1
- package/dist/client/assets/{prism-perl-Gs3lmI1r.js → prism-perl-OmnKymhn.js} +1 -1
- package/dist/client/assets/{prism-php-CQOqHyih.js → prism-php-D6cj7Bpf.js} +1 -1
- package/dist/client/assets/{prism-ruby-8j070hFf.js → prism-ruby-DpH58Hlp.js} +1 -1
- package/dist/client/assets/{prism-solidity-B9-LkboP.js → prism-solidity-D2vLuj19.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/index-BEW-FovD.css +0 -1
- package/dist/client/assets/index-Dk8Pyl-M.js +0 -67
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function y2(e,r){for(var l=0;l<r.length;l++){const a=r[l];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function Ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf={exports:{}},Ta={};var Cb;function x2(){if(Cb)return Ta;Cb=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:u}}return Ta.Fragment=r,Ta.jsx=l,Ta.jsxs=l,Ta}var Nb;function v2(){return Nb||(Nb=1,Tf.exports=x2()),Tf.exports}var y=v2(),jf={exports:{}},Re={};var Ab;function w2(){if(Ab)return Re;Ab=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function E(D,H,A){this.props=D,this.context=H,this.refs=N,this.updater=A||w}E.prototype.isReactComponent={},E.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,H,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function C(){}C.prototype=E.prototype;function j(D,H,A){this.props=D,this.context=H,this.refs=N,this.updater=A||w}var B=j.prototype=new C;B.constructor=j,S(B,E.prototype),B.isPureReactComponent=!0;var q=Array.isArray;function L(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function G(D,H,A){var re=A.ref;return{$$typeof:e,type:D,key:H,ref:re!==void 0?re:null,props:A}}function M(D,H){return G(D.type,H,D.props)}function V(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Y(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(A){return H[A]})}var J=/\/+/g;function U(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Y(""+D.key):H.toString(36)}function X(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(L,L):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function F(D,H,A,re,fe){var de=typeof D;(de==="undefined"||de==="boolean")&&(D=null);var he=!1;if(D===null)he=!0;else switch(de){case"bigint":case"string":case"number":he=!0;break;case"object":switch(D.$$typeof){case e:case r:he=!0;break;case b:return he=D._init,F(he(D._payload),H,A,re,fe)}}if(he)return fe=fe(D),he=re===""?"."+U(D,0):re,q(fe)?(A="",he!=null&&(A=he.replace(J,"$&/")+"/"),F(fe,H,A,"",function(xe){return xe})):fe!=null&&(V(fe)&&(fe=M(fe,A+(fe.key==null||D&&D.key===fe.key?"":(""+fe.key).replace(J,"$&/")+"/")+he)),H.push(fe)),1;he=0;var ge=re===""?".":re+":";if(q(D))for(var ue=0;ue<D.length;ue++)re=D[ue],de=ge+U(re,ue),he+=F(re,H,A,de,fe);else if(ue=x(D),typeof ue=="function")for(D=ue.call(D),ue=0;!(re=D.next()).done;)re=re.value,de=ge+U(re,ue++),he+=F(re,H,A,de,fe);else if(de==="object"){if(typeof D.then=="function")return F(X(D),H,A,re,fe);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function O(D,H,A){if(D==null)return D;var re=[],fe=0;return F(D,re,"","",function(de){return H.call(A,de,fe++)}),re}function z(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(A){(D._status===0||D._status===-1)&&(D._status=1,D._result=A)},function(A){(D._status===0||D._status===-1)&&(D._status=2,D._result=A)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var Q=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},_={map:O,forEach:function(D,H,A){O(D,function(){H.apply(this,arguments)},A)},count:function(D){var H=0;return O(D,function(){H++}),H},toArray:function(D){return O(D,function(H){return H})||[]},only:function(D){if(!V(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Re.Activity=g,Re.Children=_,Re.Component=E,Re.Fragment=l,Re.Profiler=s,Re.PureComponent=j,Re.StrictMode=a,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Re.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},Re.cache=function(D){return function(){return D.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(D,H,A){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var re=S({},D.props),fe=D.key;if(H!=null)for(de in H.key!==void 0&&(fe=""+H.key),H)!$.call(H,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&H.ref===void 0||(re[de]=H[de]);var de=arguments.length-2;if(de===1)re.children=A;else if(1<de){for(var he=Array(de),ge=0;ge<de;ge++)he[ge]=arguments[ge+2];re.children=he}return G(D.type,fe,re)},Re.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:u,_context:D},D},Re.createElement=function(D,H,A){var re,fe={},de=null;if(H!=null)for(re in H.key!==void 0&&(de=""+H.key),H)$.call(H,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(fe[re]=H[re]);var he=arguments.length-2;if(he===1)fe.children=A;else if(1<he){for(var ge=Array(he),ue=0;ue<he;ue++)ge[ue]=arguments[ue+2];fe.children=ge}if(D&&D.defaultProps)for(re in he=D.defaultProps,he)fe[re]===void 0&&(fe[re]=he[re]);return G(D,de,fe)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(D){return{$$typeof:f,render:D}},Re.isValidElement=V,Re.lazy=function(D){return{$$typeof:b,_payload:{_status:-1,_result:D},_init:z}},Re.memo=function(D,H){return{$$typeof:p,type:D,compare:H===void 0?null:H}},Re.startTransition=function(D){var H=I.T,A={};I.T=A;try{var re=D(),fe=I.S;fe!==null&&fe(A,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(L,Q)}catch(de){Q(de)}finally{H!==null&&A.types!==null&&(H.types=A.types),I.T=H}},Re.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Re.use=function(D){return I.H.use(D)},Re.useActionState=function(D,H,A){return I.H.useActionState(D,H,A)},Re.useCallback=function(D,H){return I.H.useCallback(D,H)},Re.useContext=function(D){return I.H.useContext(D)},Re.useDebugValue=function(){},Re.useDeferredValue=function(D,H){return I.H.useDeferredValue(D,H)},Re.useEffect=function(D,H){return I.H.useEffect(D,H)},Re.useEffectEvent=function(D){return I.H.useEffectEvent(D)},Re.useId=function(){return I.H.useId()},Re.useImperativeHandle=function(D,H,A){return I.H.useImperativeHandle(D,H,A)},Re.useInsertionEffect=function(D,H){return I.H.useInsertionEffect(D,H)},Re.useLayoutEffect=function(D,H){return I.H.useLayoutEffect(D,H)},Re.useMemo=function(D,H){return I.H.useMemo(D,H)},Re.useOptimistic=function(D,H){return I.H.useOptimistic(D,H)},Re.useReducer=function(D,H,A){return I.H.useReducer(D,H,A)},Re.useRef=function(D){return I.H.useRef(D)},Re.useState=function(D){return I.H.useState(D)},Re.useSyncExternalStore=function(D,H,A){return I.H.useSyncExternalStore(D,H,A)},Re.useTransition=function(){return I.H.useTransition()},Re.version="19.2.3",Re}var Tb;function rh(){return Tb||(Tb=1,jf.exports=w2()),jf.exports}var T=rh();const Kt=Ws(T),Dx=y2({__proto__:null,default:Kt},[T]);var _f={exports:{}},ja={},Rf={exports:{}},Lf={};var jb;function S2(){return jb||(jb=1,(function(e){function r(F,O){var z=F.length;F.push(O);e:for(;0<z;){var Q=z-1>>>1,_=F[Q];if(0<s(_,O))F[Q]=O,F[z]=_,z=Q;else break e}}function l(F){return F.length===0?null:F[0]}function a(F){if(F.length===0)return null;var O=F[0],z=F.pop();if(z!==O){F[0]=z;e:for(var Q=0,_=F.length,D=_>>>1;Q<D;){var H=2*(Q+1)-1,A=F[H],re=H+1,fe=F[re];if(0>s(A,z))re<_&&0>s(fe,A)?(F[Q]=fe,F[re]=z,Q=re):(F[Q]=A,F[H]=z,Q=H);else if(re<_&&0>s(fe,z))F[Q]=fe,F[re]=z,Q=re;else break e}}return O}function s(F,O){var z=F.sortIndex-O.sortIndex;return z!==0?z:F.id-O.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],p=[],b=1,g=null,v=3,x=!1,w=!1,S=!1,N=!1,E=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function B(F){for(var O=l(p);O!==null;){if(O.callback===null)a(p);else if(O.startTime<=F)a(p),O.sortIndex=O.expirationTime,r(h,O);else break;O=l(p)}}function q(F){if(S=!1,B(F),!w)if(l(h)!==null)w=!0,L||(L=!0,Y());else{var O=l(p);O!==null&&X(q,O.startTime-F)}}var L=!1,I=-1,$=5,G=-1;function M(){return N?!0:!(e.unstable_now()-G<$)}function V(){if(N=!1,L){var F=e.unstable_now();G=F;var O=!0;try{e:{w=!1,S&&(S=!1,C(I),I=-1),x=!0;var z=v;try{t:{for(B(F),g=l(h);g!==null&&!(g.expirationTime>F&&M());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,v=g.priorityLevel;var _=Q(g.expirationTime<=F);if(F=e.unstable_now(),typeof _=="function"){g.callback=_,B(F),O=!0;break t}g===l(h)&&a(h),B(F)}else a(h);g=l(h)}if(g!==null)O=!0;else{var D=l(p);D!==null&&X(q,D.startTime-F),O=!1}}break e}finally{g=null,v=z,x=!1}O=void 0}}finally{O?Y():L=!1}}}var Y;if(typeof j=="function")Y=function(){j(V)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,U=J.port2;J.port1.onmessage=V,Y=function(){U.postMessage(null)}}else Y=function(){E(V,0)};function X(F,O){I=E(function(){F(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(F){switch(v){case 1:case 2:case 3:var O=3;break;default:O=v}var z=v;v=O;try{return F()}finally{v=z}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(F,O){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var z=v;v=F;try{return O()}finally{v=z}},e.unstable_scheduleCallback=function(F,O,z){var Q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Q+z:Q):z=Q,F){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=z+_,F={id:b++,callback:O,priorityLevel:F,startTime:z,expirationTime:_,sortIndex:-1},z>Q?(F.sortIndex=z,r(p,F),l(h)===null&&F===l(p)&&(S?(C(I),I=-1):S=!0,X(q,z-Q))):(F.sortIndex=_,r(h,F),w||x||(w=!0,L||(L=!0,Y()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var O=v;return function(){var z=v;v=O;try{return F.apply(this,arguments)}finally{v=z}}}})(Lf)),Lf}var _b;function k2(){return _b||(_b=1,Rf.exports=S2()),Rf.exports}var Df={exports:{}},Ut={};var Rb;function E2(){if(Rb)return Ut;Rb=1;var e=rh();function r(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,p,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:p,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ut.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return u(h,p,null,b)},Ut.flushSync=function(h){var p=c.T,b=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=p,a.p=b,a.d.f()}},Ut.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Ut.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Ut.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,g=f(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):b==="script"&&a.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=f(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Ut.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,g=f(b,p.crossOrigin);a.d.L(h,b,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=f(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Ut.requestFormReset=function(h){a.d.r(h)},Ut.unstable_batchedUpdates=function(h,p){return h(p)},Ut.useFormState=function(h,p,b){return c.H.useFormState(h,p,b)},Ut.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ut.version="19.2.3",Ut}var Lb;function Ox(){if(Lb)return Df.exports;Lb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Df.exports=E2(),Df.exports}var Db;function C2(){if(Db)return ja;Db=1;var e=k2(),r=rh(),l=Ox();function a(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function f(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function h(t){if(u(t)!==t)throw Error(a(188))}function p(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(a(188));return n!==t?null:t}for(var i=t,o=n;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(o=d.return,o!==null){i=o;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return h(d),t;if(m===o)return h(d),n;m=m.sibling}throw Error(a(188))}if(i.return!==o.return)i=d,o=m;else{for(var k=!1,R=d.child;R;){if(R===i){k=!0,i=d,o=m;break}if(R===o){k=!0,o=d,i=m;break}R=R.sibling}if(!k){for(R=m.child;R;){if(R===i){k=!0,i=m,o=d;break}if(R===o){k=!0,o=m,i=d;break}R=R.sibling}if(!k)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?t:n}function b(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=b(t),n!==null)return n;t=t.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),j=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function Y(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var J=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===J?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case E:return"Profiler";case N:return"StrictMode";case q:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case j:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case B:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return n=t.displayName||null,n!==null?n:U(t.type)||"Memo";case $:n=t._payload,t=t._init;try{return U(t(n))}catch{}}return null}var X=Array.isArray,F=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},Q=[],_=-1;function D(t){return{current:t}}function H(t){0>_||(t.current=Q[_],Q[_]=null,_--)}function A(t,n){_++,Q[_]=t.current,t.current=n}var re=D(null),fe=D(null),de=D(null),he=D(null);function ge(t,n){switch(A(de,n),A(fe,t),A(re,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Xg(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Xg(n),t=Zg(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(re),A(re,t)}function ue(){H(re),H(fe),H(de)}function xe(t){t.memoizedState!==null&&A(he,t);var n=re.current,i=Zg(n,t.type);n!==i&&(A(fe,t),A(re,i))}function be(t){fe.current===t&&(H(re),H(fe)),he.current===t&&(H(he),Ea._currentValue=z)}var ye,ke;function Ce(t){if(ye===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ye=n&&n[1]||"",ke=-1<i.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ye+t+ke}var ze=!1;function We(t,n){if(!t||ze)return"";ze=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var te=ne}Reflect.construct(t,[],ce)}else{try{ce.call()}catch(ne){te=ne}t.call(ce.prototype)}}else{try{throw Error()}catch(ne){te=ne}(ce=t())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&te&&typeof ne.stack=="string")return[ne.stack,te.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=o.DetermineComponentFrameRoot(),k=m[0],R=m[1];if(k&&R){var P=k.split(`
|
|
4
|
+
`),ee=R.split(`
|
|
5
|
+
`);for(d=o=0;o<P.length&&!P[o].includes("DetermineComponentFrameRoot");)o++;for(;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;if(o===P.length||d===ee.length)for(o=P.length-1,d=ee.length-1;1<=o&&0<=d&&P[o]!==ee[d];)d--;for(;1<=o&&0<=d;o--,d--)if(P[o]!==ee[d]){if(o!==1||d!==1)do if(o--,d--,0>d||P[o]!==ee[d]){var ie=`
|
|
6
|
+
`+P[o].replace(" at new "," at ");return t.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",t.displayName)),ie}while(1<=o&&0<=d);break}}}finally{ze=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ce(i):""}function qe(t,n){switch(t.tag){case 26:case 27:case 5:return Ce(t.type);case 16:return Ce("Lazy");case 13:return t.child!==n&&n!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return We(t.type,!1);case 11:return We(t.type.render,!1);case 1:return We(t.type,!0);case 31:return Ce("Activity");default:return""}}function _t(t){try{var n="",i=null;do n+=qe(t,i),i=t,t=t.return;while(t);return n}catch(o){return`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}}var bt=Object.prototype.hasOwnProperty,pt=e.unstable_scheduleCallback,et=e.unstable_cancelCallback,Gt=e.unstable_shouldYield,Ft=e.unstable_requestPaint,tt=e.unstable_now,kr=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Me=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,Yt=e.log,cn=e.unstable_setDisableYieldValue,At=null,yt=null;function Rt(t){if(typeof Yt=="function"&&cn(t),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(At,t)}catch{}}var Ze=Math.clz32?Math.clz32:no,En=Math.log,fn=Math.LN2;function no(t){return t>>>=0,t===0?32:31-(En(t)/fn|0)|0}var Er=256,Ml=262144,al=4194304;function qn(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Cn(t,n,i){var o=t.pendingLanes;if(o===0)return 0;var d=0,m=t.suspendedLanes,k=t.pingedLanes;t=t.warmLanes;var R=o&134217727;return R!==0?(o=R&~m,o!==0?d=qn(o):(k&=R,k!==0?d=qn(k):i||(i=R&~t,i!==0&&(d=qn(i))))):(R=o&~m,R!==0?d=qn(R):k!==0?d=qn(k):i||(i=o&~t,i!==0&&(d=qn(i)))),d===0?0:n!==0&&n!==d&&(n&m)===0&&(m=d&-d,i=n&-n,m>=i||m===32&&(i&4194048)!==0)?n:d}function ol(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function ro(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sl(){var t=al;return al<<=1,(al&62914560)===0&&(al=4194304),t}function Bi(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function ul(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function xu(t,n,i,o,d,m){var k=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var R=t.entanglements,P=t.expirationTimes,ee=t.hiddenUpdates;for(i=k&~i;0<i;){var ie=31-Ze(i),ce=1<<ie;R[ie]=0,P[ie]=-1;var te=ee[ie];if(te!==null)for(ee[ie]=null,ie=0;ie<te.length;ie++){var ne=te[ie];ne!==null&&(ne.lane&=-536870913)}i&=~ce}o!==0&&lo(t,o,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(k&~n))}function lo(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-Ze(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function Cr(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-Ze(i),d=1<<o;d&n|t[o]&n&&(t[o]|=n),i&=~d}}function Fi(t,n){var i=n&-n;return i=(i&42)!==0?1:zl(i),(i&(t.suspendedLanes|n))!==0?0:i}function zl(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ii(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bl(){var t=O.p;return t!==0?t:(t=window.event,t===void 0?32:yb(t.type))}function io(t,n){var i=O.p;try{return O.p=t,n()}finally{O.p=i}}var Pn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Pn,It="__reactProps$"+Pn,le="__reactContainer$"+Pn,ve="__reactEvents$"+Pn,_e="__reactListeners$"+Pn,Ne="__reactHandles$"+Pn,st="__reactResources$"+Pn,$n="__reactMarker$"+Pn;function Nr(t){delete t[Tt],delete t[It],delete t[ve],delete t[_e],delete t[Ne]}function Fl(t){var n=t[Tt];if(n)return n;for(var i=t.parentNode;i;){if(n=i[le]||i[Tt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=nb(t);t!==null;){if(i=t[Tt])return i;t=nb(t)}return n}t=i,i=t.parentNode}return null}function Il(t){if(t=t[Tt]||t[le]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Ui(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function Ul(t){var n=t[st];return n||(n=t[st]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Lt(t){t[$n]=!0}var zh=new Set,Bh={};function cl(t,n){Hl(t,n),Hl(t+"Capture",n)}function Hl(t,n){for(Bh[t]=n,t=0;t<n.length;t++)zh.add(n[t])}var uv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fh={},Ih={};function cv(t){return bt.call(Ih,t)?!0:bt.call(Fh,t)?!1:uv.test(t)?Ih[t]=!0:(Fh[t]=!0,!1)}function ao(t,n,i){if(cv(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function oo(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function er(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function Nn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function fv(t,n,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,m=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(k){i=""+k,m.call(this,k)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(k){i=""+k},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function vu(t){if(!t._valueTracker){var n=Uh(t)?"checked":"value";t._valueTracker=fv(t,n,""+t[n])}}function Hh(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=Uh(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function so(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var dv=/[\n"\\]/g;function An(t){return t.replace(dv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function wu(t,n,i,o,d,m,k,R){t.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.type=k:t.removeAttribute("type"),n!=null?k==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Nn(n)):t.value!==""+Nn(n)&&(t.value=""+Nn(n)):k!=="submit"&&k!=="reset"||t.removeAttribute("value"),n!=null?Su(t,k,Nn(n)):i!=null?Su(t,k,Nn(i)):o!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+Nn(R):t.removeAttribute("name")}function qh(t,n,i,o,d,m,k,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),n!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){vu(t);return}i=i!=null?""+Nn(i):"",n=n!=null?""+Nn(n):i,R||n===t.value||(t.value=n),t.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=R?t.checked:!!o,t.defaultChecked=!!o,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(t.name=k),vu(t)}function Su(t,n,i){n==="number"&&so(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function ql(t,n,i,o){if(t=t.options,n){n={};for(var d=0;d<i.length;d++)n["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=n.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&o&&(t[i].defaultSelected=!0)}else{for(i=""+Nn(i),n=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,o&&(t[d].defaultSelected=!0);return}n!==null||t[d].disabled||(n=t[d])}n!==null&&(n.selected=!0)}}function Ph(t,n,i){if(n!=null&&(n=""+Nn(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+Nn(i):""}function $h(t,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(X(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=Nn(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),vu(t)}function Pl(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var hv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Vh(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||hv.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function Gh(t,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&i[d]!==o&&Vh(t,d,o)}else for(var m in n)n.hasOwnProperty(m)&&Vh(t,m,n[m])}function ku(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),mv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function uo(t){return mv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tr(){}var Eu=null;function Cu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $l=null,Vl=null;function Yh(t){var n=Il(t);if(n&&(t=n.stateNode)){var i=t[It]||null;e:switch(t=n.stateNode,n.type){case"input":if(wu(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+An(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var d=o[It]||null;if(!d)throw Error(a(90));wu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&Hh(o)}break e;case"textarea":Ph(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&ql(t,!!i.multiple,n,!1)}}}var Nu=!1;function Xh(t,n,i){if(Nu)return t(n,i);Nu=!0;try{var o=t(n);return o}finally{if(Nu=!1,($l!==null||Vl!==null)&&(Ko(),$l&&(n=$l,t=Vl,Vl=$l=null,Yh(n),t)))for(n=0;n<t.length;n++)Yh(t[n])}}function Hi(t,n){var i=t.stateNode;if(i===null)return null;var o=i[It]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Au=!1;if(nr)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Au=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Au=!1}var Ar=null,Tu=null,co=null;function Zh(){if(co)return co;var t,n=Tu,i=n.length,o,d="value"in Ar?Ar.value:Ar.textContent,m=d.length;for(t=0;t<i&&n[t]===d[t];t++);var k=i-t;for(o=1;o<=k&&n[i-o]===d[m-o];o++);return co=d.slice(t,1<o?1-o:void 0)}function fo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ho(){return!0}function Qh(){return!1}function Jt(t){function n(i,o,d,m,k){this._reactName=i,this._targetInst=d,this.type=o,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(i=t[R],this[R]=i?i(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ho:Qh,this.isPropagationStopped=Qh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),n}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},po=Jt(fl),Pi=g({},fl,{view:0,detail:0}),gv=Jt(Pi),ju,_u,$i,mo=g({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$i&&($i&&t.type==="mousemove"?(ju=t.screenX-$i.screenX,_u=t.screenY-$i.screenY):_u=ju=0,$i=t),ju)},movementY:function(t){return"movementY"in t?t.movementY:_u}}),Kh=Jt(mo),bv=g({},mo,{dataTransfer:0}),yv=Jt(bv),xv=g({},Pi,{relatedTarget:0}),Ru=Jt(xv),vv=g({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),wv=Jt(vv),Sv=g({},fl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),kv=Jt(Sv),Ev=g({},fl,{data:0}),Jh=Jt(Ev),Cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Av={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tv(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=Av[t])?!!n[t]:!1}function Lu(){return Tv}var jv=g({},Pi,{key:function(t){if(t.key){var n=Cv[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=fo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Nv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(t){return t.type==="keypress"?fo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?fo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_v=Jt(jv),Rv=g({},mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wh=Jt(Rv),Lv=g({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),Dv=Jt(Lv),Ov=g({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mv=Jt(Ov),zv=g({},mo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Bv=Jt(zv),Fv=g({},fl,{newState:0,oldState:0}),Iv=Jt(Fv),Uv=[9,13,27,32],Du=nr&&"CompositionEvent"in window,Vi=null;nr&&"documentMode"in document&&(Vi=document.documentMode);var Hv=nr&&"TextEvent"in window&&!Vi,ep=nr&&(!Du||Vi&&8<Vi&&11>=Vi),tp=" ",np=!1;function rp(t,n){switch(t){case"keyup":return Uv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gl=!1;function qv(t,n){switch(t){case"compositionend":return lp(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return t=n.data,t===tp&&np?null:t;default:return null}}function Pv(t,n){if(Gl)return t==="compositionend"||!Du&&rp(t,n)?(t=Zh(),co=Tu=Ar=null,Gl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ep&&n.locale!=="ko"?null:n.data;default:return null}}var $v={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ip(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!$v[t.type]:n==="textarea"}function ap(t,n,i,o){$l?Vl?Vl.push(o):Vl=[o]:$l=o,n=ls(n,"onChange"),0<n.length&&(i=new po("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Gi=null,Yi=null;function Vv(t){qg(t,0)}function go(t){var n=Ui(t);if(Hh(n))return t}function op(t,n){if(t==="change")return n}var sp=!1;if(nr){var Ou;if(nr){var Mu="oninput"in document;if(!Mu){var up=document.createElement("div");up.setAttribute("oninput","return;"),Mu=typeof up.oninput=="function"}Ou=Mu}else Ou=!1;sp=Ou&&(!document.documentMode||9<document.documentMode)}function cp(){Gi&&(Gi.detachEvent("onpropertychange",fp),Yi=Gi=null)}function fp(t){if(t.propertyName==="value"&&go(Yi)){var n=[];ap(n,Yi,t,Cu(t)),Xh(Vv,n)}}function Gv(t,n,i){t==="focusin"?(cp(),Gi=n,Yi=i,Gi.attachEvent("onpropertychange",fp)):t==="focusout"&&cp()}function Yv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return go(Yi)}function Xv(t,n){if(t==="click")return go(n)}function Zv(t,n){if(t==="input"||t==="change")return go(n)}function Qv(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var dn=typeof Object.is=="function"?Object.is:Qv;function Xi(t,n){if(dn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var d=i[o];if(!bt.call(n,d)||!dn(t[d],n[d]))return!1}return!0}function dp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hp(t,n){var i=dp(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=dp(i)}}function pp(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?pp(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function mp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=so(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=so(t.document)}return n}function zu(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var Kv=nr&&"documentMode"in document&&11>=document.documentMode,Yl=null,Bu=null,Zi=null,Fu=!1;function gp(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Fu||Yl==null||Yl!==so(o)||(o=Yl,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Zi&&Xi(Zi,o)||(Zi=o,o=ls(Bu,"onSelect"),0<o.length&&(n=new po("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=Yl)))}function dl(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var Xl={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},Iu={},bp={};nr&&(bp=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function hl(t){if(Iu[t])return Iu[t];if(!Xl[t])return t;var n=Xl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in bp)return Iu[t]=n[i];return t}var yp=hl("animationend"),xp=hl("animationiteration"),vp=hl("animationstart"),Jv=hl("transitionrun"),Wv=hl("transitionstart"),ew=hl("transitioncancel"),wp=hl("transitionend"),Sp=new Map,Uu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Uu.push("scrollEnd");function Fn(t,n){Sp.set(t,n),cl(n,[t])}var bo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Tn=[],Zl=0,Hu=0;function yo(){for(var t=Zl,n=Hu=Zl=0;n<t;){var i=Tn[n];Tn[n++]=null;var o=Tn[n];Tn[n++]=null;var d=Tn[n];Tn[n++]=null;var m=Tn[n];if(Tn[n++]=null,o!==null&&d!==null){var k=o.pending;k===null?d.next=d:(d.next=k.next,k.next=d),o.pending=d}m!==0&&kp(i,d,m)}}function xo(t,n,i,o){Tn[Zl++]=t,Tn[Zl++]=n,Tn[Zl++]=i,Tn[Zl++]=o,Hu|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function qu(t,n,i,o){return xo(t,n,i,o),vo(t)}function pl(t,n){return xo(t,null,null,n),vo(t)}function kp(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,o=m.alternate,o!==null&&(o.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&n!==null&&(d=31-Ze(i),t=m.hiddenUpdates,o=t[d],o===null?t[d]=[n]:o.push(n),n.lane=i|536870912),m):null}function vo(t){if(50<ba)throw ba=0,Kc=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Ql={};function tw(t,n,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(t,n,i,o){return new tw(t,n,i,o)}function Pu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function rr(t,n){var i=t.alternate;return i===null?(i=hn(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Ep(t,n){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function wo(t,n,i,o,d,m){var k=0;if(o=t,typeof t=="function")Pu(t)&&(k=1);else if(typeof t=="string")k=a2(t,i,re.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case G:return t=hn(31,i,n,d),t.elementType=G,t.lanes=m,t;case S:return ml(i.children,d,m,n);case N:k=8,d|=24;break;case E:return t=hn(12,i,n,d|2),t.elementType=E,t.lanes=m,t;case q:return t=hn(13,i,n,d),t.elementType=q,t.lanes=m,t;case L:return t=hn(19,i,n,d),t.elementType=L,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case j:k=10;break e;case C:k=9;break e;case B:k=11;break e;case I:k=14;break e;case $:k=16,o=null;break e}k=29,i=Error(a(130,t===null?"null":typeof t,"")),o=null}return n=hn(k,i,n,d),n.elementType=t,n.type=o,n.lanes=m,n}function ml(t,n,i,o){return t=hn(7,t,o,n),t.lanes=i,t}function $u(t,n,i){return t=hn(6,t,null,n),t.lanes=i,t}function Cp(t){var n=hn(18,null,null,0);return n.stateNode=t,n}function Vu(t,n,i){return n=hn(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var Np=new WeakMap;function jn(t,n){if(typeof t=="object"&&t!==null){var i=Np.get(t);return i!==void 0?i:(n={value:t,source:n,stack:_t(n)},Np.set(t,n),n)}return{value:t,source:n,stack:_t(n)}}var Kl=[],Jl=0,So=null,Qi=0,_n=[],Rn=0,Tr=null,Vn=1,Gn="";function lr(t,n){Kl[Jl++]=Qi,Kl[Jl++]=So,So=t,Qi=n}function Ap(t,n,i){_n[Rn++]=Vn,_n[Rn++]=Gn,_n[Rn++]=Tr,Tr=t;var o=Vn;t=Gn;var d=32-Ze(o)-1;o&=~(1<<d),i+=1;var m=32-Ze(n)+d;if(30<m){var k=d-d%5;m=(o&(1<<k)-1).toString(32),o>>=k,d-=k,Vn=1<<32-Ze(n)+d|i<<d|o,Gn=m+t}else Vn=1<<m|i<<d|o,Gn=t}function Gu(t){t.return!==null&&(lr(t,1),Ap(t,1,0))}function Yu(t){for(;t===So;)So=Kl[--Jl],Kl[Jl]=null,Qi=Kl[--Jl],Kl[Jl]=null;for(;t===Tr;)Tr=_n[--Rn],_n[Rn]=null,Gn=_n[--Rn],_n[Rn]=null,Vn=_n[--Rn],_n[Rn]=null}function Tp(t,n){_n[Rn++]=Vn,_n[Rn++]=Gn,_n[Rn++]=Tr,Vn=n.id,Gn=n.overflow,Tr=t}var Ot=null,ft=null,Pe=!1,jr=null,Ln=!1,Xu=Error(a(519));function _r(t){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ki(jn(n,t)),Xu}function jp(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[Tt]=t,n[It]=o,i){case"dialog":Fe("cancel",n),Fe("close",n);break;case"iframe":case"object":case"embed":Fe("load",n);break;case"video":case"audio":for(i=0;i<xa.length;i++)Fe(xa[i],n);break;case"source":Fe("error",n);break;case"img":case"image":case"link":Fe("error",n),Fe("load",n);break;case"details":Fe("toggle",n);break;case"input":Fe("invalid",n),qh(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Fe("invalid",n);break;case"textarea":Fe("invalid",n),$h(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||Gg(n.textContent,i)?(o.popover!=null&&(Fe("beforetoggle",n),Fe("toggle",n)),o.onScroll!=null&&Fe("scroll",n),o.onScrollEnd!=null&&Fe("scrollend",n),o.onClick!=null&&(n.onclick=tr),n=!0):n=!1,n||_r(t,!0)}function _p(t){for(Ot=t.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:Ln=!1;return;case 27:case 3:Ln=!0;return;default:Ot=Ot.return}}function Wl(t){if(t!==Ot)return!1;if(!Pe)return _p(t),Pe=!0,!1;var n=t.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||hf(t.type,t.memoizedProps)),i=!i),i&&ft&&_r(t),_p(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ft=tb(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));ft=tb(t)}else n===27?(n=ft,$r(t.type)?(t=yf,yf=null,ft=t):ft=n):ft=Ot?On(t.stateNode.nextSibling):null;return!0}function gl(){ft=Ot=null,Pe=!1}function Zu(){var t=jr;return t!==null&&(nn===null?nn=t:nn.push.apply(nn,t),jr=null),t}function Ki(t){jr===null?jr=[t]:jr.push(t)}var Qu=D(null),bl=null,ir=null;function Rr(t,n,i){A(Qu,n._currentValue),n._currentValue=i}function ar(t){t._currentValue=Qu.current,H(Qu)}function Ku(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function Ju(t,n,i,o){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var k=d.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=d;for(var P=0;P<n.length;P++)if(R.context===n[P]){m.lanes|=i,R=m.alternate,R!==null&&(R.lanes|=i),Ku(m.return,i,t),o||(k=null);break e}m=R.next}}else if(d.tag===18){if(k=d.return,k===null)throw Error(a(341));k.lanes|=i,m=k.alternate,m!==null&&(m.lanes|=i),Ku(k,i,t),k=null}else k=d.child;if(k!==null)k.return=d;else for(k=d;k!==null;){if(k===t){k=null;break}if(d=k.sibling,d!==null){d.return=k.return,k=d;break}k=k.return}d=k}}function ei(t,n,i,o){t=null;for(var d=n,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var k=d.alternate;if(k===null)throw Error(a(387));if(k=k.memoizedProps,k!==null){var R=d.type;dn(d.pendingProps.value,k.value)||(t!==null?t.push(R):t=[R])}}else if(d===he.current){if(k=d.alternate,k===null)throw Error(a(387));k.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Ea):t=[Ea])}d=d.return}t!==null&&Ju(n,t,i,o),n.flags|=262144}function ko(t){for(t=t.firstContext;t!==null;){if(!dn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function yl(t){bl=t,ir=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Mt(t){return Rp(bl,t)}function Eo(t,n){return bl===null&&yl(t),Rp(t,n)}function Rp(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},ir===null){if(t===null)throw Error(a(308));ir=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else ir=ir.next=n;return i}var nw=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},rw=e.unstable_scheduleCallback,lw=e.unstable_NormalPriority,wt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wu(){return{controller:new nw,data:new Map,refCount:0}}function Ji(t){t.refCount--,t.refCount===0&&rw(lw,function(){t.controller.abort()})}var Wi=null,ec=0,ti=0,ni=null;function iw(t,n){if(Wi===null){var i=Wi=[];ec=0,ti=rf(),ni={status:"pending",value:void 0,then:function(o){i.push(o)}}}return ec++,n.then(Lp,Lp),n}function Lp(){if(--ec===0&&Wi!==null){ni!==null&&(ni.status="fulfilled");var t=Wi;Wi=null,ti=0,ni=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function aw(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<i.length;d++)(0,i[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),o}var Dp=F.S;F.S=function(t,n){gg=tt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&iw(t,n),Dp!==null&&Dp(t,n)};var xl=D(null);function tc(){var t=xl.current;return t!==null?t:at.pooledCache}function Co(t,n){n===null?A(xl,xl.current):A(xl,n.pool)}function Op(){var t=tc();return t===null?null:{parent:wt._currentValue,pool:t}}var ri=Error(a(460)),nc=Error(a(474)),No=Error(a(542)),Ao={then:function(){}};function Mp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function zp(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(tr,tr),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Fp(t),t;default:if(typeof n.status=="string")n.then(tr,tr);else{if(t=at,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Fp(t),t}throw wl=n,ri}}function vl(t){try{var n=t._init;return n(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(wl=i,ri):i}}var wl=null;function Bp(){if(wl===null)throw Error(a(459));var t=wl;return wl=null,t}function Fp(t){if(t===ri||t===No)throw Error(a(483))}var li=null,ea=0;function To(t){var n=ea;return ea+=1,li===null&&(li=[]),zp(li,t,n)}function ta(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function jo(t,n){throw n.$$typeof===v?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Ip(t){function n(K,Z){if(t){var W=K.deletions;W===null?(K.deletions=[Z],K.flags|=16):W.push(Z)}}function i(K,Z){if(!t)return null;for(;Z!==null;)n(K,Z),Z=Z.sibling;return null}function o(K){for(var Z=new Map;K!==null;)K.key!==null?Z.set(K.key,K):Z.set(K.index,K),K=K.sibling;return Z}function d(K,Z){return K=rr(K,Z),K.index=0,K.sibling=null,K}function m(K,Z,W){return K.index=W,t?(W=K.alternate,W!==null?(W=W.index,W<Z?(K.flags|=67108866,Z):W):(K.flags|=67108866,Z)):(K.flags|=1048576,Z)}function k(K){return t&&K.alternate===null&&(K.flags|=67108866),K}function R(K,Z,W,oe){return Z===null||Z.tag!==6?(Z=$u(W,K.mode,oe),Z.return=K,Z):(Z=d(Z,W),Z.return=K,Z)}function P(K,Z,W,oe){var Ee=W.type;return Ee===S?ie(K,Z,W.props.children,oe,W.key):Z!==null&&(Z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===$&&vl(Ee)===Z.type)?(Z=d(Z,W.props),ta(Z,W),Z.return=K,Z):(Z=wo(W.type,W.key,W.props,null,K.mode,oe),ta(Z,W),Z.return=K,Z)}function ee(K,Z,W,oe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==W.containerInfo||Z.stateNode.implementation!==W.implementation?(Z=Vu(W,K.mode,oe),Z.return=K,Z):(Z=d(Z,W.children||[]),Z.return=K,Z)}function ie(K,Z,W,oe,Ee){return Z===null||Z.tag!==7?(Z=ml(W,K.mode,oe,Ee),Z.return=K,Z):(Z=d(Z,W),Z.return=K,Z)}function ce(K,Z,W){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=$u(""+Z,K.mode,W),Z.return=K,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case x:return W=wo(Z.type,Z.key,Z.props,null,K.mode,W),ta(W,Z),W.return=K,W;case w:return Z=Vu(Z,K.mode,W),Z.return=K,Z;case $:return Z=vl(Z),ce(K,Z,W)}if(X(Z)||Y(Z))return Z=ml(Z,K.mode,W,null),Z.return=K,Z;if(typeof Z.then=="function")return ce(K,To(Z),W);if(Z.$$typeof===j)return ce(K,Eo(K,Z),W);jo(K,Z)}return null}function te(K,Z,W,oe){var Ee=Z!==null?Z.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Ee!==null?null:R(K,Z,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case x:return W.key===Ee?P(K,Z,W,oe):null;case w:return W.key===Ee?ee(K,Z,W,oe):null;case $:return W=vl(W),te(K,Z,W,oe)}if(X(W)||Y(W))return Ee!==null?null:ie(K,Z,W,oe,null);if(typeof W.then=="function")return te(K,Z,To(W),oe);if(W.$$typeof===j)return te(K,Z,Eo(K,W),oe);jo(K,W)}return null}function ne(K,Z,W,oe,Ee){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return K=K.get(W)||null,R(Z,K,""+oe,Ee);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case x:return K=K.get(oe.key===null?W:oe.key)||null,P(Z,K,oe,Ee);case w:return K=K.get(oe.key===null?W:oe.key)||null,ee(Z,K,oe,Ee);case $:return oe=vl(oe),ne(K,Z,W,oe,Ee)}if(X(oe)||Y(oe))return K=K.get(W)||null,ie(Z,K,oe,Ee,null);if(typeof oe.then=="function")return ne(K,Z,W,To(oe),Ee);if(oe.$$typeof===j)return ne(K,Z,W,Eo(Z,oe),Ee);jo(Z,oe)}return null}function we(K,Z,W,oe){for(var Ee=null,Ye=null,Se=Z,De=Z=0,He=null;Se!==null&&De<W.length;De++){Se.index>De?(He=Se,Se=null):He=Se.sibling;var Xe=te(K,Se,W[De],oe);if(Xe===null){Se===null&&(Se=He);break}t&&Se&&Xe.alternate===null&&n(K,Se),Z=m(Xe,Z,De),Ye===null?Ee=Xe:Ye.sibling=Xe,Ye=Xe,Se=He}if(De===W.length)return i(K,Se),Pe&&lr(K,De),Ee;if(Se===null){for(;De<W.length;De++)Se=ce(K,W[De],oe),Se!==null&&(Z=m(Se,Z,De),Ye===null?Ee=Se:Ye.sibling=Se,Ye=Se);return Pe&&lr(K,De),Ee}for(Se=o(Se);De<W.length;De++)He=ne(Se,K,De,W[De],oe),He!==null&&(t&&He.alternate!==null&&Se.delete(He.key===null?De:He.key),Z=m(He,Z,De),Ye===null?Ee=He:Ye.sibling=He,Ye=He);return t&&Se.forEach(function(Zr){return n(K,Zr)}),Pe&&lr(K,De),Ee}function Te(K,Z,W,oe){if(W==null)throw Error(a(151));for(var Ee=null,Ye=null,Se=Z,De=Z=0,He=null,Xe=W.next();Se!==null&&!Xe.done;De++,Xe=W.next()){Se.index>De?(He=Se,Se=null):He=Se.sibling;var Zr=te(K,Se,Xe.value,oe);if(Zr===null){Se===null&&(Se=He);break}t&&Se&&Zr.alternate===null&&n(K,Se),Z=m(Zr,Z,De),Ye===null?Ee=Zr:Ye.sibling=Zr,Ye=Zr,Se=He}if(Xe.done)return i(K,Se),Pe&&lr(K,De),Ee;if(Se===null){for(;!Xe.done;De++,Xe=W.next())Xe=ce(K,Xe.value,oe),Xe!==null&&(Z=m(Xe,Z,De),Ye===null?Ee=Xe:Ye.sibling=Xe,Ye=Xe);return Pe&&lr(K,De),Ee}for(Se=o(Se);!Xe.done;De++,Xe=W.next())Xe=ne(Se,K,De,Xe.value,oe),Xe!==null&&(t&&Xe.alternate!==null&&Se.delete(Xe.key===null?De:Xe.key),Z=m(Xe,Z,De),Ye===null?Ee=Xe:Ye.sibling=Xe,Ye=Xe);return t&&Se.forEach(function(b2){return n(K,b2)}),Pe&&lr(K,De),Ee}function lt(K,Z,W,oe){if(typeof W=="object"&&W!==null&&W.type===S&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case x:e:{for(var Ee=W.key;Z!==null;){if(Z.key===Ee){if(Ee=W.type,Ee===S){if(Z.tag===7){i(K,Z.sibling),oe=d(Z,W.props.children),oe.return=K,K=oe;break e}}else if(Z.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===$&&vl(Ee)===Z.type){i(K,Z.sibling),oe=d(Z,W.props),ta(oe,W),oe.return=K,K=oe;break e}i(K,Z);break}else n(K,Z);Z=Z.sibling}W.type===S?(oe=ml(W.props.children,K.mode,oe,W.key),oe.return=K,K=oe):(oe=wo(W.type,W.key,W.props,null,K.mode,oe),ta(oe,W),oe.return=K,K=oe)}return k(K);case w:e:{for(Ee=W.key;Z!==null;){if(Z.key===Ee)if(Z.tag===4&&Z.stateNode.containerInfo===W.containerInfo&&Z.stateNode.implementation===W.implementation){i(K,Z.sibling),oe=d(Z,W.children||[]),oe.return=K,K=oe;break e}else{i(K,Z);break}else n(K,Z);Z=Z.sibling}oe=Vu(W,K.mode,oe),oe.return=K,K=oe}return k(K);case $:return W=vl(W),lt(K,Z,W,oe)}if(X(W))return we(K,Z,W,oe);if(Y(W)){if(Ee=Y(W),typeof Ee!="function")throw Error(a(150));return W=Ee.call(W),Te(K,Z,W,oe)}if(typeof W.then=="function")return lt(K,Z,To(W),oe);if(W.$$typeof===j)return lt(K,Z,Eo(K,W),oe);jo(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Z!==null&&Z.tag===6?(i(K,Z.sibling),oe=d(Z,W),oe.return=K,K=oe):(i(K,Z),oe=$u(W,K.mode,oe),oe.return=K,K=oe),k(K)):i(K,Z)}return function(K,Z,W,oe){try{ea=0;var Ee=lt(K,Z,W,oe);return li=null,Ee}catch(Se){if(Se===ri||Se===No)throw Se;var Ye=hn(29,Se,null,K.mode);return Ye.lanes=oe,Ye.return=K,Ye}}}var Sl=Ip(!0),Up=Ip(!1),Lr=!1;function rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lc(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Or(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Qe&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=vo(t),kp(t,null,i),n}return xo(t,o,n,i),vo(t)}function na(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,Cr(t,i)}}function ic(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var k={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=k:m=m.next=k,i=i.next}while(i!==null);m===null?d=m=n:m=m.next=n}else d=m=n;i={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var ac=!1;function ra(){if(ac){var t=ni;if(t!==null)throw t}}function la(t,n,i,o){ac=!1;var d=t.updateQueue;Lr=!1;var m=d.firstBaseUpdate,k=d.lastBaseUpdate,R=d.shared.pending;if(R!==null){d.shared.pending=null;var P=R,ee=P.next;P.next=null,k===null?m=ee:k.next=ee,k=P;var ie=t.alternate;ie!==null&&(ie=ie.updateQueue,R=ie.lastBaseUpdate,R!==k&&(R===null?ie.firstBaseUpdate=ee:R.next=ee,ie.lastBaseUpdate=P))}if(m!==null){var ce=d.baseState;k=0,ie=ee=P=null,R=m;do{var te=R.lane&-536870913,ne=te!==R.lane;if(ne?(Ue&te)===te:(o&te)===te){te!==0&&te===ti&&(ac=!0),ie!==null&&(ie=ie.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var we=t,Te=R;te=n;var lt=i;switch(Te.tag){case 1:if(we=Te.payload,typeof we=="function"){ce=we.call(lt,ce,te);break e}ce=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Te.payload,te=typeof we=="function"?we.call(lt,ce,te):we,te==null)break e;ce=g({},ce,te);break e;case 2:Lr=!0}}te=R.callback,te!==null&&(t.flags|=64,ne&&(t.flags|=8192),ne=d.callbacks,ne===null?d.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ie===null?(ee=ie=ne,P=ce):ie=ie.next=ne,k|=te;if(R=R.next,R===null){if(R=d.shared.pending,R===null)break;ne=R,R=ne.next,ne.next=null,d.lastBaseUpdate=ne,d.shared.pending=null}}while(!0);ie===null&&(P=ce),d.baseState=P,d.firstBaseUpdate=ee,d.lastBaseUpdate=ie,m===null&&(d.shared.lanes=0),Ir|=k,t.lanes=k,t.memoizedState=ce}}function Hp(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function qp(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)Hp(i[t],n)}var ii=D(null),_o=D(0);function Pp(t,n){t=mr,A(_o,t),A(ii,n),mr=t|n.baseLanes}function oc(){A(_o,mr),A(ii,ii.current)}function sc(){mr=_o.current,H(ii),H(_o)}var pn=D(null),Dn=null;function Mr(t){var n=t.alternate;A(xt,xt.current&1),A(pn,t),Dn===null&&(n===null||ii.current!==null||n.memoizedState!==null)&&(Dn=t)}function uc(t){A(xt,xt.current),A(pn,t),Dn===null&&(Dn=t)}function $p(t){t.tag===22?(A(xt,xt.current),A(pn,t),Dn===null&&(Dn=t)):zr()}function zr(){A(xt,xt.current),A(pn,pn.current)}function mn(t){H(pn),Dn===t&&(Dn=null),H(xt)}var xt=D(0);function Ro(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||gf(i)||bf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var or=0,Le=null,nt=null,St=null,Lo=!1,ai=!1,kl=!1,Do=0,ia=0,oi=null,ow=0;function mt(){throw Error(a(321))}function cc(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!dn(t[i],n[i]))return!1;return!0}function fc(t,n,i,o,d,m){return or=m,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,F.H=t===null||t.memoizedState===null?Am:Nc,kl=!1,m=i(o,d),kl=!1,ai&&(m=Gp(n,i,o,d)),Vp(t),m}function Vp(t){F.H=sa;var n=nt!==null&&nt.next!==null;if(or=0,St=nt=Le=null,Lo=!1,ia=0,oi=null,n)throw Error(a(300));t===null||kt||(t=t.dependencies,t!==null&&ko(t)&&(kt=!0))}function Gp(t,n,i,o){Le=t;var d=0;do{if(ai&&(oi=null),ia=0,ai=!1,25<=d)throw Error(a(301));if(d+=1,St=nt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=Tm,m=n(i,o)}while(ai);return m}function sw(){var t=F.H,n=t.useState()[0];return n=typeof n.then=="function"?aa(n):n,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(Le.flags|=1024),n}function dc(){var t=Do!==0;return Do=0,t}function hc(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function pc(t){if(Lo){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Lo=!1}or=0,St=nt=Le=null,ai=!1,ia=Do=0,oi=null}function Xt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?Le.memoizedState=St=t:St=St.next=t,St}function vt(){if(nt===null){var t=Le.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var n=St===null?Le.memoizedState:St.next;if(n!==null)St=n,nt=t;else{if(t===null)throw Le.alternate===null?Error(a(467)):Error(a(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},St===null?Le.memoizedState=St=t:St=St.next=t}return St}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function aa(t){var n=ia;return ia+=1,oi===null&&(oi=[]),t=zp(oi,t,n),n=Le,(St===null?n.memoizedState:St.next)===null&&(n=n.alternate,F.H=n===null||n.memoizedState===null?Am:Nc),t}function Mo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return aa(t);if(t.$$typeof===j)return Mt(t)}throw Error(a(438,String(t)))}function mc(t){var n=null,i=Le.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Le.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Oo(),Le.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=M;return n.index++,i}function sr(t,n){return typeof n=="function"?n(t):n}function zo(t){var n=vt();return gc(n,nt,t)}function gc(t,n,i){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var d=t.baseQueue,m=o.pending;if(m!==null){if(d!==null){var k=d.next;d.next=m.next,m.next=k}n.baseQueue=d=m,o.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{n=d.next;var R=k=null,P=null,ee=n,ie=!1;do{var ce=ee.lane&-536870913;if(ce!==ee.lane?(Ue&ce)===ce:(or&ce)===ce){var te=ee.revertLane;if(te===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ce===ti&&(ie=!0);else if((or&te)===te){ee=ee.next,te===ti&&(ie=!0);continue}else ce={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(R=P=ce,k=m):P=P.next=ce,Le.lanes|=te,Ir|=te;ce=ee.action,kl&&i(m,ce),m=ee.hasEagerState?ee.eagerState:i(m,ce)}else te={lane:ce,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(R=P=te,k=m):P=P.next=te,Le.lanes|=ce,Ir|=ce;ee=ee.next}while(ee!==null&&ee!==n);if(P===null?k=m:P.next=R,!dn(m,t.memoizedState)&&(kt=!0,ie&&(i=ni,i!==null)))throw i;t.memoizedState=m,t.baseState=k,t.baseQueue=P,o.lastRenderedState=m}return d===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function bc(t){var n=vt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var o=i.dispatch,d=i.pending,m=n.memoizedState;if(d!==null){i.pending=null;var k=d=d.next;do m=t(m,k.action),k=k.next;while(k!==d);dn(m,n.memoizedState)||(kt=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),i.lastRenderedState=m}return[m,o]}function Yp(t,n,i){var o=Le,d=vt(),m=Pe;if(m){if(i===void 0)throw Error(a(407));i=i()}else i=n();var k=!dn((nt||d).memoizedState,i);if(k&&(d.memoizedState=i,kt=!0),d=d.queue,vc(Qp.bind(null,o,d,t),[t]),d.getSnapshot!==n||k||St!==null&&St.memoizedState.tag&1){if(o.flags|=2048,si(9,{destroy:void 0},Zp.bind(null,o,d,i,n),null),at===null)throw Error(a(349));m||(or&127)!==0||Xp(o,n,i)}return i}function Xp(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Le.updateQueue,n===null?(n=Oo(),Le.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function Zp(t,n,i,o){n.value=i,n.getSnapshot=o,Kp(n)&&Jp(t)}function Qp(t,n,i){return i(function(){Kp(n)&&Jp(t)})}function Kp(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!dn(t,i)}catch{return!0}}function Jp(t){var n=pl(t,2);n!==null&&rn(n,t,2)}function yc(t){var n=Xt();if(typeof t=="function"){var i=t;if(t=i(),kl){Rt(!0);try{i()}finally{Rt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:t},n}function Wp(t,n,i,o){return t.baseState=i,gc(t,nt,typeof o=="function"?o:sr)}function uw(t,n,i,o,d){if(Io(t))throw Error(a(485));if(t=n.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){m.listeners.push(k)}};F.T!==null?i(!0):m.isTransition=!1,o(m),i=n.pending,i===null?(m.next=n.pending=m,em(n,m)):(m.next=i.next,n.pending=i.next=m)}}function em(t,n){var i=n.action,o=n.payload,d=t.state;if(n.isTransition){var m=F.T,k={};F.T=k;try{var R=i(d,o),P=F.S;P!==null&&P(k,R),tm(t,n,R)}catch(ee){xc(t,n,ee)}finally{m!==null&&k.types!==null&&(m.types=k.types),F.T=m}}else try{m=i(d,o),tm(t,n,m)}catch(ee){xc(t,n,ee)}}function tm(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){nm(t,n,o)},function(o){return xc(t,n,o)}):nm(t,n,i)}function nm(t,n,i){n.status="fulfilled",n.value=i,rm(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,em(t,i)))}function xc(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,rm(n),n=n.next;while(n!==o)}t.action=null}function rm(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function lm(t,n){return n}function im(t,n){if(Pe){var i=at.formState;if(i!==null){e:{var o=Le;if(Pe){if(ft){t:{for(var d=ft,m=Ln;d.nodeType!==8;){if(!m){d=null;break t}if(d=On(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){ft=On(d.nextSibling),o=d.data==="F!";break e}}_r(o)}o=!1}o&&(n=i[0])}}return i=Xt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:n},i.queue=o,i=Em.bind(null,Le,o),o.dispatch=i,o=yc(!1),m=Cc.bind(null,Le,!1,o.queue),o=Xt(),d={state:n,dispatch:null,action:t,pending:null},o.queue=d,i=uw.bind(null,Le,d,m,i),d.dispatch=i,o.memoizedState=t,[n,i,!1]}function am(t){var n=vt();return om(n,nt,t)}function om(t,n,i){if(n=gc(t,n,lm)[0],t=zo(sr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=aa(n)}catch(k){throw k===ri?No:k}else o=n;n=vt();var d=n.queue,m=d.dispatch;return i!==n.memoizedState&&(Le.flags|=2048,si(9,{destroy:void 0},cw.bind(null,d,i),null)),[o,m,t]}function cw(t,n){t.action=n}function sm(t){var n=vt(),i=nt;if(i!==null)return om(n,i,t);vt(),n=n.memoizedState,i=vt();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function si(t,n,i,o){return t={tag:t,create:i,deps:o,inst:n,next:null},n=Le.updateQueue,n===null&&(n=Oo(),Le.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function um(){return vt().memoizedState}function Bo(t,n,i,o){var d=Xt();Le.flags|=t,d.memoizedState=si(1|n,{destroy:void 0},i,o===void 0?null:o)}function Fo(t,n,i,o){var d=vt();o=o===void 0?null:o;var m=d.memoizedState.inst;nt!==null&&o!==null&&cc(o,nt.memoizedState.deps)?d.memoizedState=si(n,m,i,o):(Le.flags|=t,d.memoizedState=si(1|n,m,i,o))}function cm(t,n){Bo(8390656,8,t,n)}function vc(t,n){Fo(2048,8,t,n)}function fw(t){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=Oo(),Le.updateQueue=n,n.events=[t];else{var i=n.events;i===null?n.events=[t]:i.push(t)}}function fm(t){var n=vt().memoizedState;return fw({ref:n,nextImpl:t}),function(){if((Qe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function dm(t,n){return Fo(4,2,t,n)}function hm(t,n){return Fo(4,4,t,n)}function pm(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function mm(t,n,i){i=i!=null?i.concat([t]):null,Fo(4,4,pm.bind(null,n,t),i)}function wc(){}function gm(t,n){var i=vt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&cc(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function bm(t,n){var i=vt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&cc(n,o[1]))return o[0];if(o=t(),kl){Rt(!0);try{t()}finally{Rt(!1)}}return i.memoizedState=[o,n],o}function Sc(t,n,i){return i===void 0||(or&1073741824)!==0&&(Ue&261930)===0?t.memoizedState=n:(t.memoizedState=i,t=yg(),Le.lanes|=t,Ir|=t,i)}function ym(t,n,i,o){return dn(i,n)?i:ii.current!==null?(t=Sc(t,i,o),dn(t,n)||(kt=!0),t):(or&42)===0||(or&1073741824)!==0&&(Ue&261930)===0?(kt=!0,t.memoizedState=i):(t=yg(),Le.lanes|=t,Ir|=t,n)}function xm(t,n,i,o,d){var m=O.p;O.p=m!==0&&8>m?m:8;var k=F.T,R={};F.T=R,Cc(t,!1,n,i);try{var P=d(),ee=F.S;if(ee!==null&&ee(R,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ie=aw(P,o);oa(t,n,ie,yn(t))}else oa(t,n,o,yn(t))}catch(ce){oa(t,n,{then:function(){},status:"rejected",reason:ce},yn())}finally{O.p=m,k!==null&&R.types!==null&&(k.types=R.types),F.T=k}}function dw(){}function kc(t,n,i,o){if(t.tag!==5)throw Error(a(476));var d=vm(t).queue;xm(t,d,n,z,i===null?dw:function(){return wm(t),i(o)})}function vm(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:z},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function wm(t){var n=vm(t);n.next===null&&(n=t.alternate.memoizedState),oa(t,n.next.queue,{},yn())}function Ec(){return Mt(Ea)}function Sm(){return vt().memoizedState}function km(){return vt().memoizedState}function hw(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=yn();t=Dr(i);var o=Or(n,t,i);o!==null&&(rn(o,n,i),na(o,n,i)),n={cache:Wu()},t.payload=n;return}n=n.return}}function pw(t,n,i){var o=yn();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Io(t)?Cm(n,i):(i=qu(t,n,i,o),i!==null&&(rn(i,t,o),Nm(i,n,o)))}function Em(t,n,i){var o=yn();oa(t,n,i,o)}function oa(t,n,i,o){var d={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Io(t))Cm(n,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var k=n.lastRenderedState,R=m(k,i);if(d.hasEagerState=!0,d.eagerState=R,dn(R,k))return xo(t,n,d,0),at===null&&yo(),!1}catch{}if(i=qu(t,n,d,o),i!==null)return rn(i,t,o),Nm(i,n,o),!0}return!1}function Cc(t,n,i,o){if(o={lane:2,revertLane:rf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Io(t)){if(n)throw Error(a(479))}else n=qu(t,i,o,2),n!==null&&rn(n,t,2)}function Io(t){var n=t.alternate;return t===Le||n!==null&&n===Le}function Cm(t,n){ai=Lo=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function Nm(t,n,i){if((i&4194048)!==0){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,Cr(t,i)}}var sa={readContext:Mt,use:Mo,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};sa.useEffectEvent=mt;var Am={readContext:Mt,use:Mo,useCallback:function(t,n){return Xt().memoizedState=[t,n===void 0?null:n],t},useContext:Mt,useEffect:cm,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,Bo(4194308,4,pm.bind(null,n,t),i)},useLayoutEffect:function(t,n){return Bo(4194308,4,t,n)},useInsertionEffect:function(t,n){Bo(4,2,t,n)},useMemo:function(t,n){var i=Xt();n=n===void 0?null:n;var o=t();if(kl){Rt(!0);try{t()}finally{Rt(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=Xt();if(i!==void 0){var d=i(n);if(kl){Rt(!0);try{i(n)}finally{Rt(!1)}}}else d=n;return o.memoizedState=o.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},o.queue=t,t=t.dispatch=pw.bind(null,Le,t),[o.memoizedState,t]},useRef:function(t){var n=Xt();return t={current:t},n.memoizedState=t},useState:function(t){t=yc(t);var n=t.queue,i=Em.bind(null,Le,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:wc,useDeferredValue:function(t,n){var i=Xt();return Sc(i,t,n)},useTransition:function(){var t=yc(!1);return t=xm.bind(null,Le,t.queue,!0,!1),Xt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Le,d=Xt();if(Pe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),at===null)throw Error(a(349));(Ue&127)!==0||Xp(o,n,i)}d.memoizedState=i;var m={value:i,getSnapshot:n};return d.queue=m,cm(Qp.bind(null,o,m,t),[t]),o.flags|=2048,si(9,{destroy:void 0},Zp.bind(null,o,m,i,n),null),i},useId:function(){var t=Xt(),n=at.identifierPrefix;if(Pe){var i=Gn,o=Vn;i=(o&~(1<<32-Ze(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=Do++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=ow++,n="_"+n+"r_"+i.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Ec,useFormState:im,useActionState:im,useOptimistic:function(t){var n=Xt();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=Cc.bind(null,Le,!0,i),i.dispatch=n,[t,n]},useMemoCache:mc,useCacheRefresh:function(){return Xt().memoizedState=hw.bind(null,Le)},useEffectEvent:function(t){var n=Xt(),i={impl:t};return n.memoizedState=i,function(){if((Qe&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},Nc={readContext:Mt,use:Mo,useCallback:gm,useContext:Mt,useEffect:vc,useImperativeHandle:mm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:bm,useReducer:zo,useRef:um,useState:function(){return zo(sr)},useDebugValue:wc,useDeferredValue:function(t,n){var i=vt();return ym(i,nt.memoizedState,t,n)},useTransition:function(){var t=zo(sr)[0],n=vt().memoizedState;return[typeof t=="boolean"?t:aa(t),n]},useSyncExternalStore:Yp,useId:Sm,useHostTransitionStatus:Ec,useFormState:am,useActionState:am,useOptimistic:function(t,n){var i=vt();return Wp(i,nt,t,n)},useMemoCache:mc,useCacheRefresh:km};Nc.useEffectEvent=fm;var Tm={readContext:Mt,use:Mo,useCallback:gm,useContext:Mt,useEffect:vc,useImperativeHandle:mm,useInsertionEffect:dm,useLayoutEffect:hm,useMemo:bm,useReducer:bc,useRef:um,useState:function(){return bc(sr)},useDebugValue:wc,useDeferredValue:function(t,n){var i=vt();return nt===null?Sc(i,t,n):ym(i,nt.memoizedState,t,n)},useTransition:function(){var t=bc(sr)[0],n=vt().memoizedState;return[typeof t=="boolean"?t:aa(t),n]},useSyncExternalStore:Yp,useId:Sm,useHostTransitionStatus:Ec,useFormState:sm,useActionState:sm,useOptimistic:function(t,n){var i=vt();return nt!==null?Wp(i,nt,t,n):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:mc,useCacheRefresh:km};Tm.useEffectEvent=fm;function Ac(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:g({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Tc={enqueueSetState:function(t,n,i){t=t._reactInternals;var o=yn(),d=Dr(o);d.payload=n,i!=null&&(d.callback=i),n=Or(t,d,o),n!==null&&(rn(n,t,o),na(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=yn(),d=Dr(o);d.tag=1,d.payload=n,i!=null&&(d.callback=i),n=Or(t,d,o),n!==null&&(rn(n,t,o),na(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=yn(),o=Dr(i);o.tag=2,n!=null&&(o.callback=n),n=Or(t,o,i),n!==null&&(rn(n,t,i),na(n,t,i))}};function jm(t,n,i,o,d,m,k){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,m,k):n.prototype&&n.prototype.isPureReactComponent?!Xi(i,o)||!Xi(d,m):!0}function _m(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&Tc.enqueueReplaceState(n,n.state,null)}function El(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=g({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}function Rm(t){bo(t)}function Lm(t){console.error(t)}function Dm(t){bo(t)}function Uo(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function Om(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function jc(t,n,i){return i=Dr(i),i.tag=3,i.payload={element:null},i.callback=function(){Uo(t,n)},i}function Mm(t){return t=Dr(t),t.tag=3,t}function zm(t,n,i,o){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=o.value;t.payload=function(){return d(m)},t.callback=function(){Om(n,i,o)}}var k=i.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(t.callback=function(){Om(n,i,o),typeof d!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function mw(t,n,i,o,d){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&ei(n,i,d,!0),i=pn.current,i!==null){switch(i.tag){case 31:case 13:return Dn===null?Jo():i.alternate===null&>===0&&(gt=3),i.flags&=-257,i.flags|=65536,i.lanes=d,o===Ao?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),ef(t,o,d)),!1;case 22:return i.flags|=65536,o===Ao?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),ef(t,o,d)),!1}throw Error(a(435,i.tag))}return ef(t,o,d),Jo(),!1}if(Pe)return n=pn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==Xu&&(t=Error(a(422),{cause:o}),Ki(jn(t,i)))):(o!==Xu&&(n=Error(a(423),{cause:o}),Ki(jn(n,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,o=jn(o,i),d=jc(t.stateNode,o,d),ic(t,d),gt!==4&&(gt=2)),!1;var m=Error(a(520),{cause:o});if(m=jn(m,i),ga===null?ga=[m]:ga.push(m),gt!==4&&(gt=2),n===null)return!0;o=jn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=jc(i.stateNode,o,t),ic(i,t),!1;case 1:if(n=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ur===null||!Ur.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Mm(d),zm(d,t,i,o),ic(i,d),!1}i=i.return}while(i!==null);return!1}var _c=Error(a(461)),kt=!1;function zt(t,n,i,o){n.child=t===null?Up(n,null,i,o):Sl(n,t.child,i,o)}function Bm(t,n,i,o,d){i=i.render;var m=n.ref;if("ref"in o){var k={};for(var R in o)R!=="ref"&&(k[R]=o[R])}else k=o;return yl(n),o=fc(t,n,i,k,m,d),R=dc(),t!==null&&!kt?(hc(t,n,d),ur(t,n,d)):(Pe&&R&&Gu(n),n.flags|=1,zt(t,n,o,d),n.child)}function Fm(t,n,i,o,d){if(t===null){var m=i.type;return typeof m=="function"&&!Pu(m)&&m.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=m,Im(t,n,m,o,d)):(t=wo(i.type,null,o,n,n.mode,d),t.ref=n.ref,t.return=n,n.child=t)}if(m=t.child,!Fc(t,d)){var k=m.memoizedProps;if(i=i.compare,i=i!==null?i:Xi,i(k,o)&&t.ref===n.ref)return ur(t,n,d)}return n.flags|=1,t=rr(m,o),t.ref=n.ref,t.return=n,n.child=t}function Im(t,n,i,o,d){if(t!==null){var m=t.memoizedProps;if(Xi(m,o)&&t.ref===n.ref)if(kt=!1,n.pendingProps=o=m,Fc(t,d))(t.flags&131072)!==0&&(kt=!0);else return n.lanes=t.lanes,ur(t,n,d)}return Rc(t,n,i,o,d)}function Um(t,n,i,o){var d=o.children,m=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(o=n.child=t.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~m}else o=0,n.child=null;return Hm(t,n,m,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Co(n,m!==null?m.cachePool:null),m!==null?Pp(n,m):oc(),$p(n);else return o=n.lanes=536870912,Hm(t,n,m!==null?m.baseLanes|i:i,i,o)}else m!==null?(Co(n,m.cachePool),Pp(n,m),zr(),n.memoizedState=null):(t!==null&&Co(n,null),oc(),zr());return zt(t,n,d,i),n.child}function ua(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Hm(t,n,i,o,d){var m=tc();return m=m===null?null:{parent:wt._currentValue,pool:m},n.memoizedState={baseLanes:i,cachePool:m},t!==null&&Co(n,null),oc(),$p(n),t!==null&&ei(t,n,o,!0),n.childLanes=d,null}function Ho(t,n){return n=Po({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function qm(t,n,i){return Sl(n,t.child,null,i),t=Ho(n,n.pendingProps),t.flags|=2,mn(n),n.memoizedState=null,t}function gw(t,n,i){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Pe){if(o.mode==="hidden")return t=Ho(n,o),n.lanes=536870912,ua(null,t);if(uc(n),(t=ft)?(t=eb(t,Ln),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Tr!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},i=Cp(t),i.return=n,n.child=i,Ot=n,ft=null)):t=null,t===null)throw _r(n);return n.lanes=536870912,null}return Ho(n,o)}var m=t.memoizedState;if(m!==null){var k=m.dehydrated;if(uc(n),d)if(n.flags&256)n.flags&=-257,n=qm(t,n,i);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(a(558));else if(kt||ei(t,n,i,!1),d=(i&t.childLanes)!==0,kt||d){if(o=at,o!==null&&(k=Fi(o,i),k!==0&&k!==m.retryLane))throw m.retryLane=k,pl(t,k),rn(o,t,k),_c;Jo(),n=qm(t,n,i)}else t=m.treeContext,ft=On(k.nextSibling),Ot=n,Pe=!0,jr=null,Ln=!1,t!==null&&Tp(n,t),n=Ho(n,o),n.flags|=4096;return n}return t=rr(t.child,{mode:o.mode,children:o.children}),t.ref=n.ref,n.child=t,t.return=n,t}function qo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(n.flags|=4194816)}}function Rc(t,n,i,o,d){return yl(n),i=fc(t,n,i,o,void 0,d),o=dc(),t!==null&&!kt?(hc(t,n,d),ur(t,n,d)):(Pe&&o&&Gu(n),n.flags|=1,zt(t,n,i,d),n.child)}function Pm(t,n,i,o,d,m){return yl(n),n.updateQueue=null,i=Gp(n,o,i,d),Vp(t),o=dc(),t!==null&&!kt?(hc(t,n,m),ur(t,n,m)):(Pe&&o&&Gu(n),n.flags|=1,zt(t,n,i,m),n.child)}function $m(t,n,i,o,d){if(yl(n),n.stateNode===null){var m=Ql,k=i.contextType;typeof k=="object"&&k!==null&&(m=Mt(k)),m=new i(o,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Tc,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=o,m.state=n.memoizedState,m.refs={},rc(n),k=i.contextType,m.context=typeof k=="object"&&k!==null?Mt(k):Ql,m.state=n.memoizedState,k=i.getDerivedStateFromProps,typeof k=="function"&&(Ac(n,i,k,o),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(k=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),k!==m.state&&Tc.enqueueReplaceState(m,m.state,null),la(n,o,m,d),ra(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){m=n.stateNode;var R=n.memoizedProps,P=El(i,R);m.props=P;var ee=m.context,ie=i.contextType;k=Ql,typeof ie=="object"&&ie!==null&&(k=Mt(ie));var ce=i.getDerivedStateFromProps;ie=typeof ce=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,ie||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||ee!==k)&&_m(n,m,o,k),Lr=!1;var te=n.memoizedState;m.state=te,la(n,o,m,d),ra(),ee=n.memoizedState,R||te!==ee||Lr?(typeof ce=="function"&&(Ac(n,i,ce,o),ee=n.memoizedState),(P=Lr||jm(n,i,P,o,te,ee,k))?(ie||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=ee),m.props=o,m.state=ee,m.context=k,o=P):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{m=n.stateNode,lc(t,n),k=n.memoizedProps,ie=El(i,k),m.props=ie,ce=n.pendingProps,te=m.context,ee=i.contextType,P=Ql,typeof ee=="object"&&ee!==null&&(P=Mt(ee)),R=i.getDerivedStateFromProps,(ee=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==ce||te!==P)&&_m(n,m,o,P),Lr=!1,te=n.memoizedState,m.state=te,la(n,o,m,d),ra();var ne=n.memoizedState;k!==ce||te!==ne||Lr||t!==null&&t.dependencies!==null&&ko(t.dependencies)?(typeof R=="function"&&(Ac(n,i,R,o),ne=n.memoizedState),(ie=Lr||jm(n,i,ie,o,te,ne,P)||t!==null&&t.dependencies!==null&&ko(t.dependencies))?(ee||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,ne,P),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,ne,P)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||k===t.memoizedProps&&te===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&te===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=ne),m.props=o,m.state=ne,m.context=P,o=ie):(typeof m.componentDidUpdate!="function"||k===t.memoizedProps&&te===t.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&te===t.memoizedState||(n.flags|=1024),o=!1)}return m=o,qo(t,n),o=(n.flags&128)!==0,m||o?(m=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,t!==null&&o?(n.child=Sl(n,t.child,null,d),n.child=Sl(n,null,i,d)):zt(t,n,i,d),n.memoizedState=m.state,t=n.child):t=ur(t,n,d),t}function Vm(t,n,i,o){return gl(),n.flags|=256,zt(t,n,i,o),n.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dc(t){return{baseLanes:t,cachePool:Op()}}function Oc(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=bn),t}function Gm(t,n,i){var o=n.pendingProps,d=!1,m=(n.flags&128)!==0,k;if((k=m)||(k=t!==null&&t.memoizedState===null?!1:(xt.current&2)!==0),k&&(d=!0,n.flags&=-129),k=(n.flags&32)!==0,n.flags&=-33,t===null){if(Pe){if(d?Mr(n):zr(),(t=ft)?(t=eb(t,Ln),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Tr!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},i=Cp(t),i.return=n,n.child=i,Ot=n,ft=null)):t=null,t===null)throw _r(n);return bf(t)?n.lanes=32:n.lanes=536870912,null}var R=o.children;return o=o.fallback,d?(zr(),d=n.mode,R=Po({mode:"hidden",children:R},d),o=ml(o,d,i,null),R.return=n,o.return=n,R.sibling=o,n.child=R,o=n.child,o.memoizedState=Dc(i),o.childLanes=Oc(t,k,i),n.memoizedState=Lc,ua(null,o)):(Mr(n),Mc(n,R))}var P=t.memoizedState;if(P!==null&&(R=P.dehydrated,R!==null)){if(m)n.flags&256?(Mr(n),n.flags&=-257,n=zc(t,n,i)):n.memoizedState!==null?(zr(),n.child=t.child,n.flags|=128,n=null):(zr(),R=o.fallback,d=n.mode,o=Po({mode:"visible",children:o.children},d),R=ml(R,d,i,null),R.flags|=2,o.return=n,R.return=n,o.sibling=R,n.child=o,Sl(n,t.child,null,i),o=n.child,o.memoizedState=Dc(i),o.childLanes=Oc(t,k,i),n.memoizedState=Lc,n=ua(null,o));else if(Mr(n),bf(R)){if(k=R.nextSibling&&R.nextSibling.dataset,k)var ee=k.dgst;k=ee,o=Error(a(419)),o.stack="",o.digest=k,Ki({value:o,source:null,stack:null}),n=zc(t,n,i)}else if(kt||ei(t,n,i,!1),k=(i&t.childLanes)!==0,kt||k){if(k=at,k!==null&&(o=Fi(k,i),o!==0&&o!==P.retryLane))throw P.retryLane=o,pl(t,o),rn(k,t,o),_c;gf(R)||Jo(),n=zc(t,n,i)}else gf(R)?(n.flags|=192,n.child=t.child,n=null):(t=P.treeContext,ft=On(R.nextSibling),Ot=n,Pe=!0,jr=null,Ln=!1,t!==null&&Tp(n,t),n=Mc(n,o.children),n.flags|=4096);return n}return d?(zr(),R=o.fallback,d=n.mode,P=t.child,ee=P.sibling,o=rr(P,{mode:"hidden",children:o.children}),o.subtreeFlags=P.subtreeFlags&65011712,ee!==null?R=rr(ee,R):(R=ml(R,d,i,null),R.flags|=2),R.return=n,o.return=n,o.sibling=R,n.child=o,ua(null,o),o=n.child,R=t.child.memoizedState,R===null?R=Dc(i):(d=R.cachePool,d!==null?(P=wt._currentValue,d=d.parent!==P?{parent:P,pool:P}:d):d=Op(),R={baseLanes:R.baseLanes|i,cachePool:d}),o.memoizedState=R,o.childLanes=Oc(t,k,i),n.memoizedState=Lc,ua(t.child,o)):(Mr(n),i=t.child,t=i.sibling,i=rr(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(k=n.deletions,k===null?(n.deletions=[t],n.flags|=16):k.push(t)),n.child=i,n.memoizedState=null,i)}function Mc(t,n){return n=Po({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Po(t,n){return t=hn(22,t,null,n),t.lanes=0,t}function zc(t,n,i){return Sl(n,t.child,null,i),t=Mc(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function Ym(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Ku(t.return,n,i)}function Bc(t,n,i,o,d,m){var k=t.memoizedState;k===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:d,treeForkCount:m}:(k.isBackwards=n,k.rendering=null,k.renderingStartTime=0,k.last=o,k.tail=i,k.tailMode=d,k.treeForkCount=m)}function Xm(t,n,i){var o=n.pendingProps,d=o.revealOrder,m=o.tail;o=o.children;var k=xt.current,R=(k&2)!==0;if(R?(k=k&1|2,n.flags|=128):k&=1,A(xt,k),zt(t,n,o,i),o=Pe?Qi:0,!R&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ym(t,i,n);else if(t.tag===19)Ym(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(d){case"forwards":for(i=n.child,d=null;i!==null;)t=i.alternate,t!==null&&Ro(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=n.child,n.child=null):(d=i.sibling,i.sibling=null),Bc(n,!1,d,i,m,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,d=n.child,n.child=null;d!==null;){if(t=d.alternate,t!==null&&Ro(t)===null){n.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Bc(n,!0,i,null,m,o);break;case"together":Bc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function ur(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),Ir|=n.lanes,(i&n.childLanes)===0)if(t!==null){if(ei(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,i=rr(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=rr(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Fc(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&ko(t)))}function bw(t,n,i){switch(n.tag){case 3:ge(n,n.stateNode.containerInfo),Rr(n,wt,t.memoizedState.cache),gl();break;case 27:case 5:xe(n);break;case 4:ge(n,n.stateNode.containerInfo);break;case 10:Rr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,uc(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Mr(n),n.flags|=128,null):(i&n.child.childLanes)!==0?Gm(t,n,i):(Mr(n),t=ur(t,n,i),t!==null?t.sibling:null);Mr(n);break;case 19:var d=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(ei(t,n,i,!1),o=(i&n.childLanes)!==0),d){if(o)return Xm(t,n,i);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),A(xt,xt.current),o)break;return null;case 22:return n.lanes=0,Um(t,n,i,n.pendingProps);case 24:Rr(n,wt,t.memoizedState.cache)}return ur(t,n,i)}function Zm(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)kt=!0;else{if(!Fc(t,i)&&(n.flags&128)===0)return kt=!1,bw(t,n,i);kt=(t.flags&131072)!==0}else kt=!1,Pe&&(n.flags&1048576)!==0&&Ap(n,Qi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(t=vl(n.elementType),n.type=t,typeof t=="function")Pu(t)?(o=El(t,o),n.tag=1,n=$m(null,n,t,o,i)):(n.tag=0,n=Rc(null,n,t,o,i));else{if(t!=null){var d=t.$$typeof;if(d===B){n.tag=11,n=Bm(null,n,t,o,i);break e}else if(d===I){n.tag=14,n=Fm(null,n,t,o,i);break e}}throw n=U(t)||t,Error(a(306,n,""))}}return n;case 0:return Rc(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,d=El(o,n.pendingProps),$m(t,n,o,d,i);case 3:e:{if(ge(n,n.stateNode.containerInfo),t===null)throw Error(a(387));o=n.pendingProps;var m=n.memoizedState;d=m.element,lc(t,n),la(n,o,null,i);var k=n.memoizedState;if(o=k.cache,Rr(n,wt,o),o!==m.cache&&Ju(n,[wt],i,!0),ra(),o=k.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:k.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=Vm(t,n,o,i);break e}else if(o!==d){d=jn(Error(a(424)),n),Ki(d),n=Vm(t,n,o,i);break e}else for(t=n.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ft=On(t.firstChild),Ot=n,Pe=!0,jr=null,Ln=!0,i=Up(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(gl(),o===d){n=ur(t,n,i);break e}zt(t,n,o,i)}n=n.child}return n;case 26:return qo(t,n),t===null?(i=ab(n.type,null,n.pendingProps,null))?n.memoizedState=i:Pe||(i=n.type,t=n.pendingProps,o=is(de.current).createElement(i),o[Tt]=n,o[It]=t,Bt(o,i,t),Lt(o),n.stateNode=o):n.memoizedState=ab(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return xe(n),t===null&&Pe&&(o=n.stateNode=rb(n.type,n.pendingProps,de.current),Ot=n,Ln=!0,d=ft,$r(n.type)?(yf=d,ft=On(o.firstChild)):ft=d),zt(t,n,n.pendingProps.children,i),qo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Pe&&((d=o=ft)&&(o=Yw(o,n.type,n.pendingProps,Ln),o!==null?(n.stateNode=o,Ot=n,ft=On(o.firstChild),Ln=!1,d=!0):d=!1),d||_r(n)),xe(n),d=n.type,m=n.pendingProps,k=t!==null?t.memoizedProps:null,o=m.children,hf(d,m)?o=null:k!==null&&hf(d,k)&&(n.flags|=32),n.memoizedState!==null&&(d=fc(t,n,sw,null,null,i),Ea._currentValue=d),qo(t,n),zt(t,n,o,i),n.child;case 6:return t===null&&Pe&&((t=i=ft)&&(i=Xw(i,n.pendingProps,Ln),i!==null?(n.stateNode=i,Ot=n,ft=null,t=!0):t=!1),t||_r(n)),null;case 13:return Gm(t,n,i);case 4:return ge(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=Sl(n,null,o,i):zt(t,n,o,i),n.child;case 11:return Bm(t,n,n.type,n.pendingProps,i);case 7:return zt(t,n,n.pendingProps,i),n.child;case 8:return zt(t,n,n.pendingProps.children,i),n.child;case 12:return zt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Rr(n,n.type,o.value),zt(t,n,o.children,i),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,yl(n),d=Mt(d),o=o(d),n.flags|=1,zt(t,n,o,i),n.child;case 14:return Fm(t,n,n.type,n.pendingProps,i);case 15:return Im(t,n,n.type,n.pendingProps,i);case 19:return Xm(t,n,i);case 31:return gw(t,n,i);case 22:return Um(t,n,i,n.pendingProps);case 24:return yl(n),o=Mt(wt),t===null?(d=tc(),d===null&&(d=at,m=Wu(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),n.memoizedState={parent:o,cache:d},rc(n),Rr(n,wt,d)):((t.lanes&i)!==0&&(lc(t,n),la(n,null,null,i),ra()),d=t.memoizedState,m=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),Rr(n,wt,o)):(o=m.cache,Rr(n,wt,o),o!==d.cache&&Ju(n,[wt],i,!0))),zt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function cr(t){t.flags|=4}function Ic(t,n,i,o,d){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(d&335544128)===d)if(t.stateNode.complete)t.flags|=8192;else if(Sg())t.flags|=8192;else throw wl=Ao,nc}else t.flags&=-16777217}function Qm(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!fb(n))if(Sg())t.flags|=8192;else throw wl=Ao,nc}function $o(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?sl():536870912,t.lanes|=n,di|=n)}function ca(t,n){if(!Pe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function dt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function yw(t,n,i){var o=n.pendingProps;switch(Yu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(n),null;case 1:return dt(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),ar(wt),ue(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Wl(n)?cr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Zu())),dt(n),null;case 26:var d=n.type,m=n.memoizedState;return t===null?(cr(n),m!==null?(dt(n),Qm(n,m)):(dt(n),Ic(n,d,null,o,i))):m?m!==t.memoizedState?(cr(n),dt(n),Qm(n,m)):(dt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==o&&cr(n),dt(n),Ic(n,d,t,o,i)),null;case 27:if(be(n),i=de.current,d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&cr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return dt(n),null}t=re.current,Wl(n)?jp(n):(t=rb(d,o,i),n.stateNode=t,cr(n))}return dt(n),null;case 5:if(be(n),d=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&cr(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return dt(n),null}if(m=re.current,Wl(n))jp(n);else{var k=is(de.current);switch(m){case 1:m=k.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=k.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=k.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=k.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=k.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof o.is=="string"?k.createElement("select",{is:o.is}):k.createElement("select"),o.multiple?m.multiple=!0:o.size&&(m.size=o.size);break;default:m=typeof o.is=="string"?k.createElement(d,{is:o.is}):k.createElement(d)}}m[Tt]=n,m[It]=o;e:for(k=n.child;k!==null;){if(k.tag===5||k.tag===6)m.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===n)break e;for(;k.sibling===null;){if(k.return===null||k.return===n)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}n.stateNode=m;e:switch(Bt(m,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cr(n)}}return dt(n),Ic(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,i),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&cr(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(t=de.current,Wl(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,d=Ot,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}t[Tt]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||Gg(t.nodeValue,i)),t||_r(n,!0)}else t=is(t).createTextNode(o),t[Tt]=n,n.stateNode=t}return dt(n),null;case 31:if(i=n.memoizedState,t===null||t.memoizedState!==null){if(o=Wl(n),i!==null){if(t===null){if(!o)throw Error(a(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[Tt]=n}else gl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;dt(n),t=!1}else i=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return n.flags&256?(mn(n),n):(mn(n),null);if((n.flags&128)!==0)throw Error(a(558))}return dt(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Wl(n),o!==null&&o.dehydrated!==null){if(t===null){if(!d)throw Error(a(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[Tt]=n}else gl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;dt(n),d=!1}else d=Zu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(mn(n),n):(mn(n),null)}return mn(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==d&&(o.flags|=2048)),i!==t&&i&&(n.child.flags|=8192),$o(n,n.updateQueue),dt(n),null);case 4:return ue(),t===null&&sf(n.stateNode.containerInfo),dt(n),null;case 10:return ar(n.type),dt(n),null;case 19:if(H(xt),o=n.memoizedState,o===null)return dt(n),null;if(d=(n.flags&128)!==0,m=o.rendering,m===null)if(d)ca(o,!1);else{if(gt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(m=Ro(t),m!==null){for(n.flags|=128,ca(o,!1),t=m.updateQueue,n.updateQueue=t,$o(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)Ep(i,t),i=i.sibling;return A(xt,xt.current&1|2),Pe&&lr(n,o.treeForkCount),n.child}t=t.sibling}o.tail!==null&&tt()>Zo&&(n.flags|=128,d=!0,ca(o,!1),n.lanes=4194304)}else{if(!d)if(t=Ro(m),t!==null){if(n.flags|=128,d=!0,t=t.updateQueue,n.updateQueue=t,$o(n,t),ca(o,!0),o.tail===null&&o.tailMode==="hidden"&&!m.alternate&&!Pe)return dt(n),null}else 2*tt()-o.renderingStartTime>Zo&&i!==536870912&&(n.flags|=128,d=!0,ca(o,!1),n.lanes=4194304);o.isBackwards?(m.sibling=n.child,n.child=m):(t=o.last,t!==null?t.sibling=m:n.child=m,o.last=m)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=tt(),t.sibling=null,i=xt.current,A(xt,d?i&1|2:i&1),Pe&&lr(n,o.treeForkCount),t):(dt(n),null);case 22:case 23:return mn(n),sc(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(dt(n),n.subtreeFlags&6&&(n.flags|=8192)):dt(n),i=n.updateQueue,i!==null&&$o(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&H(xl),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),ar(wt),dt(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function xw(t,n){switch(Yu(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return ar(wt),ue(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return be(n),null;case 31:if(n.memoizedState!==null){if(mn(n),n.alternate===null)throw Error(a(340));gl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(mn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));gl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return H(xt),null;case 4:return ue(),null;case 10:return ar(n.type),null;case 22:case 23:return mn(n),sc(),t!==null&&H(xl),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return ar(wt),null;case 25:return null;default:return null}}function Km(t,n){switch(Yu(n),n.tag){case 3:ar(wt),ue();break;case 26:case 27:case 5:be(n);break;case 4:ue();break;case 31:n.memoizedState!==null&&mn(n);break;case 13:mn(n);break;case 19:H(xt);break;case 10:ar(n.type);break;case 22:case 23:mn(n),sc(),t!==null&&H(xl);break;case 24:ar(wt)}}function fa(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var d=o.next;i=d;do{if((i.tag&t)===t){o=void 0;var m=i.create,k=i.inst;o=m(),k.destroy=o}i=i.next}while(i!==d)}}catch(R){Je(n,n.return,R)}}function Br(t,n,i){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&t)===t){var k=o.inst,R=k.destroy;if(R!==void 0){k.destroy=void 0,d=n;var P=i,ee=R;try{ee()}catch(ie){Je(d,P,ie)}}}o=o.next}while(o!==m)}}catch(ie){Je(n,n.return,ie)}}function Jm(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{qp(n,i)}catch(o){Je(t,t.return,o)}}}function Wm(t,n,i){i.props=El(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){Je(t,n,o)}}function da(t,n){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(d){Je(t,n,d)}}function Yn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(d){Je(t,n,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){Je(t,n,d)}else i.current=null}function eg(t){var n=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(d){Je(t,t.return,d)}}function Uc(t,n,i){try{var o=t.stateNode;Hw(o,t.type,i,n),o[It]=n}catch(d){Je(t,t.return,d)}}function tg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&$r(t.type)||t.tag===4}function Hc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&$r(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qc(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(t),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=tr));else if(o!==4&&(o===27&&$r(t.type)&&(i=t.stateNode,n=null),t=t.child,t!==null))for(qc(t,n,i),t=t.sibling;t!==null;)qc(t,n,i),t=t.sibling}function Vo(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&(o===27&&$r(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Vo(t,n,i),t=t.sibling;t!==null;)Vo(t,n,i),t=t.sibling}function ng(t){var n=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);Bt(n,o,i),n[Tt]=t,n[It]=i}catch(m){Je(t,t.return,m)}}var fr=!1,Et=!1,Pc=!1,rg=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function vw(t,n){if(t=t.containerInfo,ff=ds,t=mp(t),zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var d=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var k=0,R=-1,P=-1,ee=0,ie=0,ce=t,te=null;t:for(;;){for(var ne;ce!==i||d!==0&&ce.nodeType!==3||(R=k+d),ce!==m||o!==0&&ce.nodeType!==3||(P=k+o),ce.nodeType===3&&(k+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)te=ce,ce=ne;for(;;){if(ce===t)break t;if(te===i&&++ee===d&&(R=k),te===m&&++ie===o&&(P=k),(ne=ce.nextSibling)!==null)break;ce=te,te=ce.parentNode}ce=ne}i=R===-1||P===-1?null:{start:R,end:P}}else i=null}i=i||{start:0,end:0}}else i=null;for(df={focusedElem:t,selectionRange:i},ds=!1,Dt=n;Dt!==null;)if(n=Dt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Dt=t;else for(;Dt!==null;){switch(n=Dt,m=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)d=t[i],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=n,d=m.memoizedProps,m=m.memoizedState,o=i.stateNode;try{var we=El(i.type,d);t=o.getSnapshotBeforeUpdate(we,m),o.__reactInternalSnapshotBeforeUpdate=t}catch(Te){Je(i,i.return,Te)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)mf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=n.sibling,t!==null){t.return=n.return,Dt=t;break}Dt=n.return}}function lg(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:hr(t,i),o&4&&fa(5,i);break;case 1:if(hr(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(k){Je(i,i.return,k)}else{var d=El(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(d,n,t.__reactInternalSnapshotBeforeUpdate)}catch(k){Je(i,i.return,k)}}o&64&&Jm(i),o&512&&da(i,i.return);break;case 3:if(hr(t,i),o&64&&(t=i.updateQueue,t!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{qp(t,n)}catch(k){Je(i,i.return,k)}}break;case 27:n===null&&o&4&&ng(i);case 26:case 5:hr(t,i),n===null&&o&4&&eg(i),o&512&&da(i,i.return);break;case 12:hr(t,i);break;case 31:hr(t,i),o&4&&og(t,i);break;case 13:hr(t,i),o&4&&sg(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=jw.bind(null,i),Zw(t,i))));break;case 22:if(o=i.memoizedState!==null||fr,!o){n=n!==null&&n.memoizedState!==null||Et,d=fr;var m=Et;fr=o,(Et=n)&&!m?pr(t,i,(i.subtreeFlags&8772)!==0):hr(t,i),fr=d,Et=m}break;case 30:break;default:hr(t,i)}}function ig(t){var n=t.alternate;n!==null&&(t.alternate=null,ig(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Nr(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ht=null,Wt=!1;function dr(t,n,i){for(i=i.child;i!==null;)ag(t,n,i),i=i.sibling}function ag(t,n,i){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(At,i)}catch{}switch(i.tag){case 26:Et||Yn(i,n),dr(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Et||Yn(i,n);var o=ht,d=Wt;$r(i.type)&&(ht=i.stateNode,Wt=!1),dr(t,n,i),wa(i.stateNode),ht=o,Wt=d;break;case 5:Et||Yn(i,n);case 6:if(o=ht,d=Wt,ht=null,dr(t,n,i),ht=o,Wt=d,ht!==null)if(Wt)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(i.stateNode)}catch(m){Je(i,n,m)}else try{ht.removeChild(i.stateNode)}catch(m){Je(i,n,m)}break;case 18:ht!==null&&(Wt?(t=ht,Jg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),vi(t)):Jg(ht,i.stateNode));break;case 4:o=ht,d=Wt,ht=i.stateNode.containerInfo,Wt=!0,dr(t,n,i),ht=o,Wt=d;break;case 0:case 11:case 14:case 15:Br(2,i,n),Et||Br(4,i,n),dr(t,n,i);break;case 1:Et||(Yn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Wm(i,n,o)),dr(t,n,i);break;case 21:dr(t,n,i);break;case 22:Et=(o=Et)||i.memoizedState!==null,dr(t,n,i),Et=o;break;default:dr(t,n,i)}}function og(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{vi(t)}catch(i){Je(n,n.return,i)}}}function sg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{vi(t)}catch(i){Je(n,n.return,i)}}function ww(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new rg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new rg),n;default:throw Error(a(435,t.tag))}}function Go(t,n){var i=ww(t);n.forEach(function(o){if(!i.has(o)){i.add(o);var d=_w.bind(null,t,o);o.then(d,d)}})}function en(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var d=i[o],m=t,k=n,R=k;e:for(;R!==null;){switch(R.tag){case 27:if($r(R.type)){ht=R.stateNode,Wt=!1;break e}break;case 5:ht=R.stateNode,Wt=!1;break e;case 3:case 4:ht=R.stateNode.containerInfo,Wt=!0;break e}R=R.return}if(ht===null)throw Error(a(160));ag(m,k,d),ht=null,Wt=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)ug(n,t),n=n.sibling}var In=null;function ug(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:en(n,t),tn(t),o&4&&(Br(3,t,t.return),fa(3,t),Br(5,t,t.return));break;case 1:en(n,t),tn(t),o&512&&(Et||i===null||Yn(i,i.return)),o&64&&fr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var d=In;if(en(n,t),tn(t),o&512&&(Et||i===null||Yn(i,i.return)),o&4){var m=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":m=d.getElementsByTagName("title")[0],(!m||m[$n]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(o),d.head.insertBefore(m,d.querySelector("head > title"))),Bt(m,o,i),m[Tt]=t,Lt(m),o=m;break e;case"link":var k=ub("link","href",d).get(o+(i.href||""));if(k){for(var R=0;R<k.length;R++)if(m=k[R],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){k.splice(R,1);break t}}m=d.createElement(o),Bt(m,o,i),d.head.appendChild(m);break;case"meta":if(k=ub("meta","content",d).get(o+(i.content||""))){for(R=0;R<k.length;R++)if(m=k[R],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){k.splice(R,1);break t}}m=d.createElement(o),Bt(m,o,i),d.head.appendChild(m);break;default:throw Error(a(468,o))}m[Tt]=t,Lt(m),o=m}t.stateNode=o}else cb(d,t.type,t.stateNode);else t.stateNode=sb(d,o,t.memoizedProps);else m!==o?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,o===null?cb(d,t.type,t.stateNode):sb(d,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Uc(t,t.memoizedProps,i.memoizedProps)}break;case 27:en(n,t),tn(t),o&512&&(Et||i===null||Yn(i,i.return)),i!==null&&o&4&&Uc(t,t.memoizedProps,i.memoizedProps);break;case 5:if(en(n,t),tn(t),o&512&&(Et||i===null||Yn(i,i.return)),t.flags&32){d=t.stateNode;try{Pl(d,"")}catch(we){Je(t,t.return,we)}}o&4&&t.stateNode!=null&&(d=t.memoizedProps,Uc(t,d,i!==null?i.memoizedProps:d)),o&1024&&(Pc=!0);break;case 6:if(en(n,t),tn(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(we){Je(t,t.return,we)}}break;case 3:if(ss=null,d=In,In=as(n.containerInfo),en(n,t),In=d,tn(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{vi(n.containerInfo)}catch(we){Je(t,t.return,we)}Pc&&(Pc=!1,cg(t));break;case 4:o=In,In=as(t.stateNode.containerInfo),en(n,t),tn(t),In=o;break;case 12:en(n,t),tn(t);break;case 31:en(n,t),tn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 13:en(n,t),tn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Xo=tt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 22:d=t.memoizedState!==null;var P=i!==null&&i.memoizedState!==null,ee=fr,ie=Et;if(fr=ee||d,Et=ie||P,en(n,t),Et=ie,fr=ee,tn(t),o&8192)e:for(n=t.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(i===null||P||fr||Et||Cl(t)),i=null,n=t;;){if(n.tag===5||n.tag===26){if(i===null){P=i=n;try{if(m=P.stateNode,d)k=m.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{R=P.stateNode;var ce=P.memoizedProps.style,te=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;R.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){Je(P,P.return,we)}}}else if(n.tag===6){if(i===null){P=n;try{P.stateNode.nodeValue=d?"":P.memoizedProps}catch(we){Je(P,P.return,we)}}}else if(n.tag===18){if(i===null){P=n;try{var ne=P.stateNode;d?Wg(ne,!0):Wg(P.stateNode,!1)}catch(we){Je(P,P.return,we)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Go(t,i))));break;case 19:en(n,t),tn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 30:break;case 21:break;default:en(n,t),tn(t)}}function tn(t){var n=t.flags;if(n&2){try{for(var i,o=t.return;o!==null;){if(tg(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var d=i.stateNode,m=Hc(t);Vo(t,m,d);break;case 5:var k=i.stateNode;i.flags&32&&(Pl(k,""),i.flags&=-33);var R=Hc(t);Vo(t,R,k);break;case 3:case 4:var P=i.stateNode.containerInfo,ee=Hc(t);qc(t,ee,P);break;default:throw Error(a(161))}}catch(ie){Je(t,t.return,ie)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function cg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;cg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function hr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)lg(t,n.alternate,n),n=n.sibling}function Cl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Br(4,n,n.return),Cl(n);break;case 1:Yn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Wm(n,n.return,i),Cl(n);break;case 27:wa(n.stateNode);case 26:case 5:Yn(n,n.return),Cl(n);break;case 22:n.memoizedState===null&&Cl(n);break;case 30:Cl(n);break;default:Cl(n)}t=t.sibling}}function pr(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=t,m=n,k=m.flags;switch(m.tag){case 0:case 11:case 15:pr(d,m,i),fa(4,m);break;case 1:if(pr(d,m,i),o=m,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ee){Je(o,o.return,ee)}if(o=m,d=o.updateQueue,d!==null){var R=o.stateNode;try{var P=d.shared.hiddenCallbacks;if(P!==null)for(d.shared.hiddenCallbacks=null,d=0;d<P.length;d++)Hp(P[d],R)}catch(ee){Je(o,o.return,ee)}}i&&k&64&&Jm(m),da(m,m.return);break;case 27:ng(m);case 26:case 5:pr(d,m,i),i&&o===null&&k&4&&eg(m),da(m,m.return);break;case 12:pr(d,m,i);break;case 31:pr(d,m,i),i&&k&4&&og(d,m);break;case 13:pr(d,m,i),i&&k&4&&sg(d,m);break;case 22:m.memoizedState===null&&pr(d,m,i),da(m,m.return);break;case 30:break;default:pr(d,m,i)}n=n.sibling}}function $c(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Ji(i))}function Vc(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ji(t))}function Un(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)fg(t,n,i,o),n=n.sibling}function fg(t,n,i,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:Un(t,n,i,o),d&2048&&fa(9,n);break;case 1:Un(t,n,i,o);break;case 3:Un(t,n,i,o),d&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ji(t)));break;case 12:if(d&2048){Un(t,n,i,o),t=n.stateNode;try{var m=n.memoizedProps,k=m.id,R=m.onPostCommit;typeof R=="function"&&R(k,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){Je(n,n.return,P)}}else Un(t,n,i,o);break;case 31:Un(t,n,i,o);break;case 13:Un(t,n,i,o);break;case 23:break;case 22:m=n.stateNode,k=n.alternate,n.memoizedState!==null?m._visibility&2?Un(t,n,i,o):ha(t,n):m._visibility&2?Un(t,n,i,o):(m._visibility|=2,ui(t,n,i,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&$c(k,n);break;case 24:Un(t,n,i,o),d&2048&&Vc(n.alternate,n);break;default:Un(t,n,i,o)}}function ui(t,n,i,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=t,k=n,R=i,P=o,ee=k.flags;switch(k.tag){case 0:case 11:case 15:ui(m,k,R,P,d),fa(8,k);break;case 23:break;case 22:var ie=k.stateNode;k.memoizedState!==null?ie._visibility&2?ui(m,k,R,P,d):ha(m,k):(ie._visibility|=2,ui(m,k,R,P,d)),d&&ee&2048&&$c(k.alternate,k);break;case 24:ui(m,k,R,P,d),d&&ee&2048&&Vc(k.alternate,k);break;default:ui(m,k,R,P,d)}n=n.sibling}}function ha(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,d=o.flags;switch(o.tag){case 22:ha(i,o),d&2048&&$c(o.alternate,o);break;case 24:ha(i,o),d&2048&&Vc(o.alternate,o);break;default:ha(i,o)}n=n.sibling}}var pa=8192;function ci(t,n,i){if(t.subtreeFlags&pa)for(t=t.child;t!==null;)dg(t,n,i),t=t.sibling}function dg(t,n,i){switch(t.tag){case 26:ci(t,n,i),t.flags&pa&&t.memoizedState!==null&&o2(i,In,t.memoizedState,t.memoizedProps);break;case 5:ci(t,n,i);break;case 3:case 4:var o=In;In=as(t.stateNode.containerInfo),ci(t,n,i),In=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=pa,pa=16777216,ci(t,n,i),pa=o):ci(t,n,i));break;default:ci(t,n,i)}}function hg(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function ma(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Dt=o,mg(o,t)}hg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pg(t),t=t.sibling}function pg(t){switch(t.tag){case 0:case 11:case 15:ma(t),t.flags&2048&&Br(9,t,t.return);break;case 3:ma(t);break;case 12:ma(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Yo(t)):ma(t);break;default:ma(t)}}function Yo(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];Dt=o,mg(o,t)}hg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Br(8,n,n.return),Yo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Yo(n));break;default:Yo(n)}t=t.sibling}}function mg(t,n){for(;Dt!==null;){var i=Dt;switch(i.tag){case 0:case 11:case 15:Br(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ji(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Dt=o;else e:for(i=t;Dt!==null;){o=Dt;var d=o.sibling,m=o.return;if(ig(o),o===i){Dt=null;break e}if(d!==null){d.return=m,Dt=d;break e}Dt=m}}}var Sw={getCacheForType:function(t){var n=Mt(wt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i},cacheSignal:function(){return Mt(wt).controller.signal}},kw=typeof WeakMap=="function"?WeakMap:Map,Qe=0,at=null,Be=null,Ue=0,Ke=0,gn=null,Fr=!1,fi=!1,Gc=!1,mr=0,gt=0,Ir=0,Nl=0,Yc=0,bn=0,di=0,ga=null,nn=null,Xc=!1,Xo=0,gg=0,Zo=1/0,Qo=null,Ur=null,jt=0,Hr=null,hi=null,gr=0,Zc=0,Qc=null,bg=null,ba=0,Kc=null;function yn(){return(Qe&2)!==0&&Ue!==0?Ue&-Ue:F.T!==null?rf():Bl()}function yg(){if(bn===0)if((Ue&536870912)===0||Pe){var t=Ml;Ml<<=1,(Ml&3932160)===0&&(Ml=262144),bn=t}else bn=536870912;return t=pn.current,t!==null&&(t.flags|=32),bn}function rn(t,n,i){(t===at&&(Ke===2||Ke===9)||t.cancelPendingCommit!==null)&&(pi(t,0),qr(t,Ue,bn,!1)),ul(t,i),((Qe&2)===0||t!==at)&&(t===at&&((Qe&2)===0&&(Nl|=i),gt===4&&qr(t,Ue,bn,!1)),Xn(t))}function xg(t,n,i){if((Qe&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&t.expiredLanes)===0||ol(t,n),d=o?Nw(t,n):Wc(t,n,!0),m=o;do{if(d===0){fi&&!o&&qr(t,n,0,!1);break}else{if(i=t.current.alternate,m&&!Ew(i)){d=Wc(t,n,!1),m=!1;continue}if(d===2){if(m=n,t.errorRecoveryDisabledLanes&m)var k=0;else k=t.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){n=k;e:{var R=t;d=ga;var P=R.current.memoizedState.isDehydrated;if(P&&(pi(R,k).flags|=256),k=Wc(R,k,!1),k!==2){if(Gc&&!P){R.errorRecoveryDisabledLanes|=m,Nl|=m,d=4;break e}m=nn,nn=d,m!==null&&(nn===null?nn=m:nn.push.apply(nn,m))}d=k}if(m=!1,d!==2)continue}}if(d===1){pi(t,0),qr(t,n,0,!0);break}e:{switch(o=t,m=d,m){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:qr(o,n,bn,!Fr);break e;case 2:nn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(d=Xo+300-tt(),10<d)){if(qr(o,n,bn,!Fr),Cn(o,0,!0)!==0)break e;gr=n,o.timeoutHandle=Qg(vg.bind(null,o,i,nn,Qo,Xc,n,bn,Nl,di,Fr,m,"Throttled",-0,0),d);break e}vg(o,i,nn,Qo,Xc,n,bn,Nl,di,Fr,m,null,-0,0)}}break}while(!0);Xn(t)}function vg(t,n,i,o,d,m,k,R,P,ee,ie,ce,te,ne){if(t.timeoutHandle=-1,ce=n.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tr},dg(n,m,ce);var we=(m&62914560)===m?Xo-tt():(m&4194048)===m?gg-tt():0;if(we=s2(ce,we),we!==null){gr=m,t.cancelPendingCommit=we(Tg.bind(null,t,n,m,i,o,d,k,R,P,ie,ce,null,te,ne)),qr(t,m,k,!ee);return}}Tg(t,n,m,i,o,d,k,R,P)}function Ew(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var d=i[o],m=d.getSnapshot;d=d.value;try{if(!dn(m(),d))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qr(t,n,i,o){n&=~Yc,n&=~Nl,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var d=n;0<d;){var m=31-Ze(d),k=1<<m;o[m]=-1,d&=~k}i!==0&&lo(t,i,n)}function Ko(){return(Qe&6)===0?(ya(0),!1):!0}function Jc(){if(Be!==null){if(Ke===0)var t=Be.return;else t=Be,ir=bl=null,pc(t),li=null,ea=0,t=Be;for(;t!==null;)Km(t.alternate,t),t=t.return;Be=null}}function pi(t,n){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,$w(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),gr=0,Jc(),at=t,Be=i=rr(t.current,null),Ue=n,Ke=0,gn=null,Fr=!1,fi=ol(t,n),Gc=!1,di=bn=Yc=Nl=Ir=gt=0,nn=ga=null,Xc=!1,(n&8)!==0&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var d=31-Ze(o),m=1<<d;n|=t[d],o&=~m}return mr=n,yo(),i}function wg(t,n){Le=null,F.H=sa,n===ri||n===No?(n=Bp(),Ke=3):n===nc?(n=Bp(),Ke=4):Ke=n===_c?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,gn=n,Be===null&&(gt=1,Uo(t,jn(n,t.current)))}function Sg(){var t=pn.current;return t===null?!0:(Ue&4194048)===Ue?Dn===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?t===Dn:!1}function kg(){var t=F.H;return F.H=sa,t===null?sa:t}function Eg(){var t=F.A;return F.A=Sw,t}function Jo(){gt=4,Fr||(Ue&4194048)!==Ue&&pn.current!==null||(fi=!0),(Ir&134217727)===0&&(Nl&134217727)===0||at===null||qr(at,Ue,bn,!1)}function Wc(t,n,i){var o=Qe;Qe|=2;var d=kg(),m=Eg();(at!==t||Ue!==n)&&(Qo=null,pi(t,n)),n=!1;var k=gt;e:do try{if(Ke!==0&&Be!==null){var R=Be,P=gn;switch(Ke){case 8:Jc(),k=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(n=!0);var ee=Ke;if(Ke=0,gn=null,mi(t,R,P,ee),i&&fi){k=0;break e}break;default:ee=Ke,Ke=0,gn=null,mi(t,R,P,ee)}}Cw(),k=gt;break}catch(ie){wg(t,ie)}while(!0);return n&&t.shellSuspendCounter++,ir=bl=null,Qe=o,F.H=d,F.A=m,Be===null&&(at=null,Ue=0,yo()),k}function Cw(){for(;Be!==null;)Cg(Be)}function Nw(t,n){var i=Qe;Qe|=2;var o=kg(),d=Eg();at!==t||Ue!==n?(Qo=null,Zo=tt()+500,pi(t,n)):fi=ol(t,n);e:do try{if(Ke!==0&&Be!==null){n=Be;var m=gn;t:switch(Ke){case 1:Ke=0,gn=null,mi(t,n,m,1);break;case 2:case 9:if(Mp(m)){Ke=0,gn=null,Ng(n);break}n=function(){Ke!==2&&Ke!==9||at!==t||(Ke=7),Xn(t)},m.then(n,n);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Mp(m)?(Ke=0,gn=null,Ng(n)):(Ke=0,gn=null,mi(t,n,m,7));break;case 5:var k=null;switch(Be.tag){case 26:k=Be.memoizedState;case 5:case 27:var R=Be;if(k?fb(k):R.stateNode.complete){Ke=0,gn=null;var P=R.sibling;if(P!==null)Be=P;else{var ee=R.return;ee!==null?(Be=ee,Wo(ee)):Be=null}break t}}Ke=0,gn=null,mi(t,n,m,5);break;case 6:Ke=0,gn=null,mi(t,n,m,6);break;case 8:Jc(),gt=6;break e;default:throw Error(a(462))}}Aw();break}catch(ie){wg(t,ie)}while(!0);return ir=bl=null,F.H=o,F.A=d,Qe=i,Be!==null?0:(at=null,Ue=0,yo(),gt)}function Aw(){for(;Be!==null&&!Gt();)Cg(Be)}function Cg(t){var n=Zm(t.alternate,t,mr);t.memoizedProps=t.pendingProps,n===null?Wo(t):Be=n}function Ng(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=Pm(i,n,n.pendingProps,n.type,void 0,Ue);break;case 11:n=Pm(i,n,n.pendingProps,n.type.render,n.ref,Ue);break;case 5:pc(n);default:Km(i,n),n=Be=Ep(n,mr),n=Zm(i,n,mr)}t.memoizedProps=t.pendingProps,n===null?Wo(t):Be=n}function mi(t,n,i,o){ir=bl=null,pc(n),li=null,ea=0;var d=n.return;try{if(mw(t,d,n,i,Ue)){gt=1,Uo(t,jn(i,t.current)),Be=null;return}}catch(m){if(d!==null)throw Be=d,m;gt=1,Uo(t,jn(i,t.current)),Be=null;return}n.flags&32768?(Pe||o===1?t=!0:fi||(Ue&536870912)!==0?t=!1:(Fr=t=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ag(n,t)):Wo(n)}function Wo(t){var n=t;do{if((n.flags&32768)!==0){Ag(n,Fr);return}t=n.return;var i=yw(n.alternate,n,mr);if(i!==null){Be=i;return}if(n=n.sibling,n!==null){Be=n;return}Be=n=t}while(n!==null);gt===0&&(gt=5)}function Ag(t,n){do{var i=xw(t.alternate,t);if(i!==null){i.flags&=32767,Be=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){Be=t;return}Be=t=i}while(t!==null);gt=6,Be=null}function Tg(t,n,i,o,d,m,k,R,P){t.cancelPendingCommit=null;do es();while(jt!==0);if((Qe&6)!==0)throw Error(a(327));if(n!==null){if(n===t.current)throw Error(a(177));if(m=n.lanes|n.childLanes,m|=Hu,xu(t,i,m,k,R,P),t===at&&(Be=at=null,Ue=0),hi=n,Hr=t,gr=i,Zc=m,Qc=d,bg=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Rw(je,function(){return Dg(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=F.T,F.T=null,d=O.p,O.p=2,k=Qe,Qe|=4;try{vw(t,n,i)}finally{Qe=k,O.p=d,F.T=o}}jt=1,jg(),_g(),Rg()}}function jg(){if(jt===1){jt=0;var t=Hr,n=hi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Qe;Qe|=4;try{ug(n,t);var m=df,k=mp(t.containerInfo),R=m.focusedElem,P=m.selectionRange;if(k!==R&&R&&R.ownerDocument&&pp(R.ownerDocument.documentElement,R)){if(P!==null&&zu(R)){var ee=P.start,ie=P.end;if(ie===void 0&&(ie=ee),"selectionStart"in R)R.selectionStart=ee,R.selectionEnd=Math.min(ie,R.value.length);else{var ce=R.ownerDocument||document,te=ce&&ce.defaultView||window;if(te.getSelection){var ne=te.getSelection(),we=R.textContent.length,Te=Math.min(P.start,we),lt=P.end===void 0?Te:Math.min(P.end,we);!ne.extend&&Te>lt&&(k=lt,lt=Te,Te=k);var K=hp(R,Te),Z=hp(R,lt);if(K&&Z&&(ne.rangeCount!==1||ne.anchorNode!==K.node||ne.anchorOffset!==K.offset||ne.focusNode!==Z.node||ne.focusOffset!==Z.offset)){var W=ce.createRange();W.setStart(K.node,K.offset),ne.removeAllRanges(),Te>lt?(ne.addRange(W),ne.extend(Z.node,Z.offset)):(W.setEnd(Z.node,Z.offset),ne.addRange(W))}}}}for(ce=[],ne=R;ne=ne.parentNode;)ne.nodeType===1&&ce.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ce.length;R++){var oe=ce[R];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}ds=!!ff,df=ff=null}finally{Qe=d,O.p=o,F.T=i}}t.current=n,jt=2}}function _g(){if(jt===2){jt=0;var t=Hr,n=hi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=F.T,F.T=null;var o=O.p;O.p=2;var d=Qe;Qe|=4;try{lg(t,n.alternate,n)}finally{Qe=d,O.p=o,F.T=i}}jt=3}}function Rg(){if(jt===4||jt===3){jt=0,Ft();var t=Hr,n=hi,i=gr,o=bg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?jt=5:(jt=0,hi=Hr=null,Lg(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(Ur=null),Ii(i),n=n.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(At,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=F.T,d=O.p,O.p=2,F.T=null;try{for(var m=t.onRecoverableError,k=0;k<o.length;k++){var R=o[k];m(R.value,{componentStack:R.stack})}}finally{F.T=n,O.p=d}}(gr&3)!==0&&es(),Xn(t),d=t.pendingLanes,(i&261930)!==0&&(d&42)!==0?t===Kc?ba++:(ba=0,Kc=t):ba=0,ya(0)}}function Lg(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Ji(n)))}function es(){return jg(),_g(),Rg(),Dg()}function Dg(){if(jt!==5)return!1;var t=Hr,n=Zc;Zc=0;var i=Ii(gr),o=F.T,d=O.p;try{O.p=32>i?32:i,F.T=null,i=Qc,Qc=null;var m=Hr,k=gr;if(jt=0,hi=Hr=null,gr=0,(Qe&6)!==0)throw Error(a(331));var R=Qe;if(Qe|=4,pg(m.current),fg(m,m.current,k,i),Qe=R,ya(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(At,m)}catch{}return!0}finally{O.p=d,F.T=o,Lg(t,n)}}function Og(t,n,i){n=jn(i,n),n=jc(t.stateNode,n,2),t=Or(t,n,2),t!==null&&(ul(t,2),Xn(t))}function Je(t,n,i){if(t.tag===3)Og(t,t,i);else for(;n!==null;){if(n.tag===3){Og(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ur===null||!Ur.has(o))){t=jn(i,t),i=Mm(2),o=Or(n,i,2),o!==null&&(zm(i,o,n,t),ul(o,2),Xn(o));break}}n=n.return}}function ef(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new kw;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(i)||(Gc=!0,d.add(i),t=Tw.bind(null,t,n,i),n.then(t,t))}function Tw(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,at===t&&(Ue&i)===i&&(gt===4||gt===3&&(Ue&62914560)===Ue&&300>tt()-Xo?(Qe&2)===0&&pi(t,0):Yc|=i,di===Ue&&(di=0)),Xn(t)}function Mg(t,n){n===0&&(n=sl()),t=pl(t,n),t!==null&&(ul(t,n),Xn(t))}function jw(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Mg(t,i)}function _w(t,n){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),Mg(t,i)}function Rw(t,n){return pt(t,n)}var ts=null,gi=null,tf=!1,ns=!1,nf=!1,Pr=0;function Xn(t){t!==gi&&t.next===null&&(gi===null?ts=gi=t:gi=gi.next=t),ns=!0,tf||(tf=!0,Dw())}function ya(t,n){if(!nf&&ns){nf=!0;do for(var i=!1,o=ts;o!==null;){if(t!==0){var d=o.pendingLanes;if(d===0)var m=0;else{var k=o.suspendedLanes,R=o.pingedLanes;m=(1<<31-Ze(42|t)+1)-1,m&=d&~(k&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Ig(o,m))}else m=Ue,m=Cn(o,o===at?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||ol(o,m)||(i=!0,Ig(o,m));o=o.next}while(i);nf=!1}}function Lw(){zg()}function zg(){ns=tf=!1;var t=0;Pr!==0&&Pw()&&(t=Pr);for(var n=tt(),i=null,o=ts;o!==null;){var d=o.next,m=Bg(o,n);m===0?(o.next=null,i===null?ts=d:i.next=d,d===null&&(gi=i)):(i=o,(t!==0||(m&3)!==0)&&(ns=!0)),o=d}jt!==0&&jt!==5||ya(t),Pr!==0&&(Pr=0)}function Bg(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var k=31-Ze(m),R=1<<k,P=d[k];P===-1?((R&i)===0||(R&o)!==0)&&(d[k]=ro(R,n)):P<=n&&(t.expiredLanes|=R),m&=~R}if(n=at,i=Ue,i=Cn(t,t===n?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===n&&(Ke===2||Ke===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&et(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||ol(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&et(o),Ii(i)){case 2:case 8:i=me;break;case 32:i=je;break;case 268435456:i=Ge;break;default:i=je}return o=Fg.bind(null,t),i=pt(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&et(o),t.callbackPriority=2,t.callbackNode=null,2}function Fg(t,n){if(jt!==0&&jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(es()&&t.callbackNode!==i)return null;var o=Ue;return o=Cn(t,t===at?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(xg(t,o,n),Bg(t,tt()),t.callbackNode!=null&&t.callbackNode===i?Fg.bind(null,t):null)}function Ig(t,n){if(es())return null;xg(t,n,!0)}function Dw(){Vw(function(){(Qe&6)!==0?pt(ae,Lw):zg()})}function rf(){if(Pr===0){var t=ti;t===0&&(t=Er,Er<<=1,(Er&261888)===0&&(Er=256)),Pr=t}return Pr}function Ug(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:uo(""+t)}function Hg(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function Ow(t,n,i,o,d){if(n==="submit"&&i&&i.stateNode===d){var m=Ug((d[It]||null).action),k=o.submitter;k&&(n=(n=k[It]||null)?Ug(n.formAction):k.getAttribute("formAction"),n!==null&&(m=n,k=null));var R=new po("action","action",null,o,d);t.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Pr!==0){var P=k?Hg(d,k):new FormData(d);kc(i,{pending:!0,data:P,method:d.method,action:m},null,P)}}else typeof m=="function"&&(R.preventDefault(),P=k?Hg(d,k):new FormData(d),kc(i,{pending:!0,data:P,method:d.method,action:m},m,P))},currentTarget:d}]})}}for(var lf=0;lf<Uu.length;lf++){var af=Uu[lf],Mw=af.toLowerCase(),zw=af[0].toUpperCase()+af.slice(1);Fn(Mw,"on"+zw)}Fn(yp,"onAnimationEnd"),Fn(xp,"onAnimationIteration"),Fn(vp,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(Jv,"onTransitionRun"),Fn(Wv,"onTransitionStart"),Fn(ew,"onTransitionCancel"),Fn(wp,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xa));function qg(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],d=o.event;o=o.listeners;e:{var m=void 0;if(n)for(var k=o.length-1;0<=k;k--){var R=o[k],P=R.instance,ee=R.currentTarget;if(R=R.listener,P!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=ee;try{m(d)}catch(ie){bo(ie)}d.currentTarget=null,m=P}else for(k=0;k<o.length;k++){if(R=o[k],P=R.instance,ee=R.currentTarget,R=R.listener,P!==m&&d.isPropagationStopped())break e;m=R,d.currentTarget=ee;try{m(d)}catch(ie){bo(ie)}d.currentTarget=null,m=P}}}}function Fe(t,n){var i=n[ve];i===void 0&&(i=n[ve]=new Set);var o=t+"__bubble";i.has(o)||(Pg(n,t,2,!1),i.add(o))}function of(t,n,i){var o=0;n&&(o|=4),Pg(i,t,o,n)}var rs="_reactListening"+Math.random().toString(36).slice(2);function sf(t){if(!t[rs]){t[rs]=!0,zh.forEach(function(i){i!=="selectionchange"&&(Bw.has(i)||of(i,!1,t),of(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[rs]||(n[rs]=!0,of("selectionchange",!1,n))}}function Pg(t,n,i,o){switch(yb(n)){case 2:var d=f2;break;case 8:d=d2;break;default:d=kf}i=d.bind(null,n,i,t),d=void 0,!Au||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?t.addEventListener(n,i,{capture:!0,passive:d}):t.addEventListener(n,i,!0):d!==void 0?t.addEventListener(n,i,{passive:d}):t.addEventListener(n,i,!1)}function uf(t,n,i,o,d){var m=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var k=o.tag;if(k===3||k===4){var R=o.stateNode.containerInfo;if(R===d)break;if(k===4)for(k=o.return;k!==null;){var P=k.tag;if((P===3||P===4)&&k.stateNode.containerInfo===d)return;k=k.return}for(;R!==null;){if(k=Fl(R),k===null)return;if(P=k.tag,P===5||P===6||P===26||P===27){o=m=k;continue e}R=R.parentNode}}o=o.return}Xh(function(){var ee=m,ie=Cu(i),ce=[];e:{var te=Sp.get(t);if(te!==void 0){var ne=po,we=t;switch(t){case"keypress":if(fo(i)===0)break e;case"keydown":case"keyup":ne=_v;break;case"focusin":we="focus",ne=Ru;break;case"focusout":we="blur",ne=Ru;break;case"beforeblur":case"afterblur":ne=Ru;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=Dv;break;case yp:case xp:case vp:ne=wv;break;case wp:ne=Mv;break;case"scroll":case"scrollend":ne=gv;break;case"wheel":ne=Bv;break;case"copy":case"cut":case"paste":ne=kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Wh;break;case"toggle":case"beforetoggle":ne=Iv}var Te=(n&4)!==0,lt=!Te&&(t==="scroll"||t==="scrollend"),K=Te?te!==null?te+"Capture":null:te;Te=[];for(var Z=ee,W;Z!==null;){var oe=Z;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||K===null||(oe=Hi(Z,K),oe!=null&&Te.push(va(Z,oe,W))),lt)break;Z=Z.return}0<Te.length&&(te=new ne(te,we,null,i,ie),ce.push({event:te,listeners:Te}))}}if((n&7)===0){e:{if(te=t==="mouseover"||t==="pointerover",ne=t==="mouseout"||t==="pointerout",te&&i!==Eu&&(we=i.relatedTarget||i.fromElement)&&(Fl(we)||we[le]))break e;if((ne||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,ne?(we=i.relatedTarget||i.toElement,ne=ee,we=we?Fl(we):null,we!==null&&(lt=u(we),Te=we.tag,we!==lt||Te!==5&&Te!==27&&Te!==6)&&(we=null)):(ne=null,we=ee),ne!==we)){if(Te=Kh,oe="onMouseLeave",K="onMouseEnter",Z="mouse",(t==="pointerout"||t==="pointerover")&&(Te=Wh,oe="onPointerLeave",K="onPointerEnter",Z="pointer"),lt=ne==null?te:Ui(ne),W=we==null?te:Ui(we),te=new Te(oe,Z+"leave",ne,i,ie),te.target=lt,te.relatedTarget=W,oe=null,Fl(ie)===ee&&(Te=new Te(K,Z+"enter",we,i,ie),Te.target=W,Te.relatedTarget=lt,oe=Te),lt=oe,ne&&we)t:{for(Te=Fw,K=ne,Z=we,W=0,oe=K;oe;oe=Te(oe))W++;oe=0;for(var Ee=Z;Ee;Ee=Te(Ee))oe++;for(;0<W-oe;)K=Te(K),W--;for(;0<oe-W;)Z=Te(Z),oe--;for(;W--;){if(K===Z||Z!==null&&K===Z.alternate){Te=K;break t}K=Te(K),Z=Te(Z)}Te=null}else Te=null;ne!==null&&$g(ce,te,ne,Te,!1),we!==null&<!==null&&$g(ce,lt,we,Te,!0)}}e:{if(te=ee?Ui(ee):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var Ye=op;else if(ip(te))if(sp)Ye=Zv;else{Ye=Yv;var Se=Gv}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&ku(ee.elementType)&&(Ye=op):Ye=Xv;if(Ye&&(Ye=Ye(t,ee))){ap(ce,Ye,i,ie);break e}Se&&Se(t,te,ee),t==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Su(te,"number",te.value)}switch(Se=ee?Ui(ee):window,t){case"focusin":(ip(Se)||Se.contentEditable==="true")&&(Yl=Se,Bu=ee,Zi=null);break;case"focusout":Zi=Bu=Yl=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,gp(ce,i,ie);break;case"selectionchange":if(Kv)break;case"keydown":case"keyup":gp(ce,i,ie)}var De;if(Du)e:{switch(t){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Gl?rp(t,i)&&(He="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(He="onCompositionStart");He&&(ep&&i.locale!=="ko"&&(Gl||He!=="onCompositionStart"?He==="onCompositionEnd"&&Gl&&(De=Zh()):(Ar=ie,Tu="value"in Ar?Ar.value:Ar.textContent,Gl=!0)),Se=ls(ee,He),0<Se.length&&(He=new Jh(He,t,null,i,ie),ce.push({event:He,listeners:Se}),De?He.data=De:(De=lp(i),De!==null&&(He.data=De)))),(De=Hv?qv(t,i):Pv(t,i))&&(He=ls(ee,"onBeforeInput"),0<He.length&&(Se=new Jh("onBeforeInput","beforeinput",null,i,ie),ce.push({event:Se,listeners:He}),Se.data=De)),Ow(ce,t,ee,i,ie)}qg(ce,n)})}function va(t,n,i){return{instance:t,listener:n,currentTarget:i}}function ls(t,n){for(var i=n+"Capture",o=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=Hi(t,i),d!=null&&o.unshift(va(t,d,m)),d=Hi(t,n),d!=null&&o.push(va(t,d,m))),t.tag===3)return o;t=t.return}return[]}function Fw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $g(t,n,i,o,d){for(var m=n._reactName,k=[];i!==null&&i!==o;){var R=i,P=R.alternate,ee=R.stateNode;if(R=R.tag,P!==null&&P===o)break;R!==5&&R!==26&&R!==27||ee===null||(P=ee,d?(ee=Hi(i,m),ee!=null&&k.unshift(va(i,ee,P))):d||(ee=Hi(i,m),ee!=null&&k.push(va(i,ee,P)))),i=i.return}k.length!==0&&t.push({event:n,listeners:k})}var Iw=/\r\n?/g,Uw=/\u0000|\uFFFD/g;function Vg(t){return(typeof t=="string"?t:""+t).replace(Iw,`
|
|
9
|
+
`).replace(Uw,"")}function Gg(t,n){return n=Vg(n),Vg(t)===n}function rt(t,n,i,o,d,m){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Pl(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Pl(t,""+o);break;case"className":oo(t,"class",o);break;case"tabIndex":oo(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":oo(t,i,o);break;case"style":Gh(t,o,m);break;case"data":if(n!=="object"){oo(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=uo(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(n!=="input"&&rt(t,n,"name",d.name,d,null),rt(t,n,"formEncType",d.formEncType,d,null),rt(t,n,"formMethod",d.formMethod,d,null),rt(t,n,"formTarget",d.formTarget,d,null)):(rt(t,n,"encType",d.encType,d,null),rt(t,n,"method",d.method,d,null),rt(t,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=uo(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=tr);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=uo(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Fe("beforetoggle",t),Fe("toggle",t),ao(t,"popover",o);break;case"xlinkActuate":er(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":er(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":er(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":er(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":er(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":er(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":er(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":er(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":er(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ao(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=pv.get(i)||i,ao(t,i,o))}}function cf(t,n,i,o,d,m){switch(i){case"style":Gh(t,o,m);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(d.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof o=="string"?Pl(t,o):(typeof o=="number"||typeof o=="bigint")&&Pl(t,""+o);break;case"onScroll":o!=null&&Fe("scroll",t);break;case"onScrollEnd":o!=null&&Fe("scrollend",t);break;case"onClick":o!=null&&(t.onclick=tr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),n=i.slice(2,d?i.length-7:void 0),m=t[It]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(n,m,d),typeof o=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,d);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):ao(t,i,o)}}}function Bt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",t),Fe("load",t);var o=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var k=i[m];if(k!=null)switch(m){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:rt(t,n,m,k,i,null)}}d&&rt(t,n,"srcSet",i.srcSet,i,null),o&&rt(t,n,"src",i.src,i,null);return;case"input":Fe("invalid",t);var R=m=k=d=null,P=null,ee=null;for(o in i)if(i.hasOwnProperty(o)){var ie=i[o];if(ie!=null)switch(o){case"name":d=ie;break;case"type":k=ie;break;case"checked":P=ie;break;case"defaultChecked":ee=ie;break;case"value":m=ie;break;case"defaultValue":R=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,n));break;default:rt(t,n,o,ie,i,null)}}qh(t,m,R,P,ee,k,d,!1);return;case"select":Fe("invalid",t),o=k=m=null;for(d in i)if(i.hasOwnProperty(d)&&(R=i[d],R!=null))switch(d){case"value":m=R;break;case"defaultValue":k=R;break;case"multiple":o=R;default:rt(t,n,d,R,i,null)}n=m,i=k,t.multiple=!!o,n!=null?ql(t,!!o,n,!1):i!=null&&ql(t,!!o,i,!0);return;case"textarea":Fe("invalid",t),m=d=o=null;for(k in i)if(i.hasOwnProperty(k)&&(R=i[k],R!=null))switch(k){case"value":o=R;break;case"defaultValue":d=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(a(91));break;default:rt(t,n,k,R,i,null)}$h(t,o,d,m);return;case"option":for(P in i)i.hasOwnProperty(P)&&(o=i[P],o!=null)&&(P==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":rt(t,n,P,o,i,null));return;case"dialog":Fe("beforetoggle",t),Fe("toggle",t),Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":Fe("load",t);break;case"video":case"audio":for(o=0;o<xa.length;o++)Fe(xa[o],t);break;case"image":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"embed":case"source":case"link":Fe("error",t),Fe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in i)if(i.hasOwnProperty(ee)&&(o=i[ee],o!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:rt(t,n,ee,o,i,null)}return;default:if(ku(n)){for(ie in i)i.hasOwnProperty(ie)&&(o=i[ie],o!==void 0&&cf(t,n,ie,o,i,void 0));return}}for(R in i)i.hasOwnProperty(R)&&(o=i[R],o!=null&&rt(t,n,R,o,i,null))}function Hw(t,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,k=null,R=null,P=null,ee=null,ie=null;for(ne in i){var ce=i[ne];if(i.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":P=ce;default:o.hasOwnProperty(ne)||rt(t,n,ne,null,o,ce)}}for(var te in o){var ne=o[te];if(ce=i[te],o.hasOwnProperty(te)&&(ne!=null||ce!=null))switch(te){case"type":m=ne;break;case"name":d=ne;break;case"checked":ee=ne;break;case"defaultChecked":ie=ne;break;case"value":k=ne;break;case"defaultValue":R=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,n));break;default:ne!==ce&&rt(t,n,te,ne,o,ce)}}wu(t,k,R,P,ee,ie,m,d);return;case"select":ne=k=R=te=null;for(m in i)if(P=i[m],i.hasOwnProperty(m)&&P!=null)switch(m){case"value":break;case"multiple":ne=P;default:o.hasOwnProperty(m)||rt(t,n,m,null,o,P)}for(d in o)if(m=o[d],P=i[d],o.hasOwnProperty(d)&&(m!=null||P!=null))switch(d){case"value":te=m;break;case"defaultValue":R=m;break;case"multiple":k=m;default:m!==P&&rt(t,n,d,m,o,P)}n=R,i=k,o=ne,te!=null?ql(t,!!i,te,!1):!!o!=!!i&&(n!=null?ql(t,!!i,n,!0):ql(t,!!i,i?[]:"",!1));return;case"textarea":ne=te=null;for(R in i)if(d=i[R],i.hasOwnProperty(R)&&d!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:rt(t,n,R,null,o,d)}for(k in o)if(d=o[k],m=i[k],o.hasOwnProperty(k)&&(d!=null||m!=null))switch(k){case"value":te=d;break;case"defaultValue":ne=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==m&&rt(t,n,k,d,o,m)}Ph(t,te,ne);return;case"option":for(var we in i)te=i[we],i.hasOwnProperty(we)&&te!=null&&!o.hasOwnProperty(we)&&(we==="selected"?t.selected=!1:rt(t,n,we,null,o,te));for(P in o)te=o[P],ne=i[P],o.hasOwnProperty(P)&&te!==ne&&(te!=null||ne!=null)&&(P==="selected"?t.selected=te&&typeof te!="function"&&typeof te!="symbol":rt(t,n,P,te,o,ne));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in i)te=i[Te],i.hasOwnProperty(Te)&&te!=null&&!o.hasOwnProperty(Te)&&rt(t,n,Te,null,o,te);for(ee in o)if(te=o[ee],ne=i[ee],o.hasOwnProperty(ee)&&te!==ne&&(te!=null||ne!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,n));break;default:rt(t,n,ee,te,o,ne)}return;default:if(ku(n)){for(var lt in i)te=i[lt],i.hasOwnProperty(lt)&&te!==void 0&&!o.hasOwnProperty(lt)&&cf(t,n,lt,void 0,o,te);for(ie in o)te=o[ie],ne=i[ie],!o.hasOwnProperty(ie)||te===ne||te===void 0&&ne===void 0||cf(t,n,ie,te,o,ne);return}}for(var K in i)te=i[K],i.hasOwnProperty(K)&&te!=null&&!o.hasOwnProperty(K)&&rt(t,n,K,null,o,te);for(ce in o)te=o[ce],ne=i[ce],!o.hasOwnProperty(ce)||te===ne||te==null&&ne==null||rt(t,n,ce,te,o,ne)}function Yg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var d=i[o],m=d.transferSize,k=d.initiatorType,R=d.duration;if(m&&R&&Yg(k)){for(k=0,R=d.responseEnd,o+=1;o<i.length;o++){var P=i[o],ee=P.startTime;if(ee>R)break;var ie=P.transferSize,ce=P.initiatorType;ie&&Yg(ce)&&(P=P.responseEnd,k+=ie*(P<R?1:(R-ee)/(P-ee)))}if(--o,n+=8*(m+k)/(d.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ff=null,df=null;function is(t){return t.nodeType===9?t:t.ownerDocument}function Xg(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zg(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function hf(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var pf=null;function Pw(){var t=window.event;return t&&t.type==="popstate"?t===pf?!1:(pf=t,!0):(pf=null,!1)}var Qg=typeof setTimeout=="function"?setTimeout:void 0,$w=typeof clearTimeout=="function"?clearTimeout:void 0,Kg=typeof Promise=="function"?Promise:void 0,Vw=typeof queueMicrotask=="function"?queueMicrotask:typeof Kg<"u"?function(t){return Kg.resolve(null).then(t).catch(Gw)}:Qg;function Gw(t){setTimeout(function(){throw t})}function $r(t){return t==="head"}function Jg(t,n){var i=n,o=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(d),vi(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")wa(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,wa(i);for(var m=i.firstChild;m;){var k=m.nextSibling,R=m.nodeName;m[$n]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=k}}else i==="body"&&wa(t.ownerDocument.body);i=d}while(i);vi(n)}function Wg(t,n){var i=t;t=0;do{var o=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function mf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mf(i),Nr(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function Yw(t,n,i,o){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[$n])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=On(t.nextSibling),t===null)break}return null}function Xw(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=On(t.nextSibling),t===null))return null;return t}function eb(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=On(t.nextSibling),t===null))return null;return t}function gf(t){return t.data==="$?"||t.data==="$~"}function bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Zw(t,n){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function On(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var yf=null;function tb(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(n===0)return On(t.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}t=t.nextSibling}return null}function nb(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return t;n--}else i!=="/$"&&i!=="/&"||n++}t=t.previousSibling}return null}function rb(t,n,i){switch(n=is(i),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function wa(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Nr(t)}var Mn=new Map,lb=new Set;function as(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var br=O.d;O.d={f:Qw,r:Kw,D:Jw,C:Ww,L:e2,m:t2,X:r2,S:n2,M:l2};function Qw(){var t=br.f(),n=Ko();return t||n}function Kw(t){var n=Il(t);n!==null&&n.tag===5&&n.type==="form"?wm(n):br.r(t)}var bi=typeof document>"u"?null:document;function ib(t,n,i){var o=bi;if(o&&typeof n=="string"&&n){var d=An(n);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),lb.has(d)||(lb.add(d),t={rel:t,crossOrigin:i,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),Bt(n,"link",t),Lt(n),o.head.appendChild(n)))}}function Jw(t){br.D(t),ib("dns-prefetch",t,null)}function Ww(t,n){br.C(t,n),ib("preconnect",t,n)}function e2(t,n,i){br.L(t,n,i);var o=bi;if(o&&t&&n){var d='link[rel="preload"][as="'+An(n)+'"]';n==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+An(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+An(i.imageSizes)+'"]')):d+='[href="'+An(t)+'"]';var m=d;switch(n){case"style":m=yi(t);break;case"script":m=xi(t)}Mn.has(m)||(t=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),Mn.set(m,t),o.querySelector(d)!==null||n==="style"&&o.querySelector(Sa(m))||n==="script"&&o.querySelector(ka(m))||(n=o.createElement("link"),Bt(n,"link",t),Lt(n),o.head.appendChild(n)))}}function t2(t,n){br.m(t,n);var i=bi;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+An(o)+'"][href="'+An(t)+'"]',m=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=xi(t)}if(!Mn.has(m)&&(t=g({rel:"modulepreload",href:t},n),Mn.set(m,t),i.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(ka(m)))return}o=i.createElement("link"),Bt(o,"link",t),Lt(o),i.head.appendChild(o)}}}function n2(t,n,i){br.S(t,n,i);var o=bi;if(o&&t){var d=Ul(o).hoistableStyles,m=yi(t);n=n||"default";var k=d.get(m);if(!k){var R={loading:0,preload:null};if(k=o.querySelector(Sa(m)))R.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},i),(i=Mn.get(m))&&xf(t,i);var P=k=o.createElement("link");Lt(P),Bt(P,"link",t),P._p=new Promise(function(ee,ie){P.onload=ee,P.onerror=ie}),P.addEventListener("load",function(){R.loading|=1}),P.addEventListener("error",function(){R.loading|=2}),R.loading|=4,os(k,n,o)}k={type:"stylesheet",instance:k,count:1,state:R},d.set(m,k)}}}function r2(t,n){br.X(t,n);var i=bi;if(i&&t){var o=Ul(i).hoistableScripts,d=xi(t),m=o.get(d);m||(m=i.querySelector(ka(d)),m||(t=g({src:t,async:!0},n),(n=Mn.get(d))&&vf(t,n),m=i.createElement("script"),Lt(m),Bt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function l2(t,n){br.M(t,n);var i=bi;if(i&&t){var o=Ul(i).hoistableScripts,d=xi(t),m=o.get(d);m||(m=i.querySelector(ka(d)),m||(t=g({src:t,async:!0,type:"module"},n),(n=Mn.get(d))&&vf(t,n),m=i.createElement("script"),Lt(m),Bt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(d,m))}}function ab(t,n,i,o){var d=(d=de.current)?as(d):null;if(!d)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=yi(i.href),i=Ul(d).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=yi(i.href);var m=Ul(d).hoistableStyles,k=m.get(t);if(k||(d=d.ownerDocument||d,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,k),(m=d.querySelector(Sa(t)))&&!m._p&&(k.instance=m,k.state.loading=5),Mn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Mn.set(t,i),m||i2(d,t,i,k.state))),n&&o===null)throw Error(a(528,""));return k}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=xi(i),i=Ul(d).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function yi(t){return'href="'+An(t)+'"'}function Sa(t){return'link[rel="stylesheet"]['+t+"]"}function ob(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function i2(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Bt(n,"link",i),Lt(n),t.head.appendChild(n))}function xi(t){return'[src="'+An(t)+'"]'}function ka(t){return"script[async]"+t}function sb(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+An(i.href)+'"]');if(o)return n.instance=o,Lt(o),o;var d=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Lt(o),Bt(o,"style",d),os(o,i.precedence,t),n.instance=o;case"stylesheet":d=yi(i.href);var m=t.querySelector(Sa(d));if(m)return n.state.loading|=4,n.instance=m,Lt(m),m;o=ob(i),(d=Mn.get(d))&&xf(o,d),m=(t.ownerDocument||t).createElement("link"),Lt(m);var k=m;return k._p=new Promise(function(R,P){k.onload=R,k.onerror=P}),Bt(m,"link",o),n.state.loading|=4,os(m,i.precedence,t),n.instance=m;case"script":return m=xi(i.src),(d=t.querySelector(ka(m)))?(n.instance=d,Lt(d),d):(o=i,(d=Mn.get(m))&&(o=g({},i),vf(o,d)),t=t.ownerDocument||t,d=t.createElement("script"),Lt(d),Bt(d,"link",o),t.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,os(o,i.precedence,t));return n.instance}function os(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,m=d,k=0;k<o.length;k++){var R=o[k];if(R.dataset.precedence===n)m=R;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function xf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function vf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var ss=null;function ub(t,n,i){if(ss===null){var o=new Map,d=ss=new Map;d.set(i,o)}else d=ss,o=d.get(i),o||(o=new Map,d.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[$n]||m[Tt]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var k=m.getAttribute(n)||"";k=t+k;var R=o.get(k);R?R.push(m):o.set(k,[m])}}return o}function cb(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function a2(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(t=n.disabled,typeof n.precedence=="string"&&t==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function fb(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function o2(t,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=yi(o.href),m=n.querySelector(Sa(d));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=us.bind(t),n.then(t,t)),i.state.loading|=4,i.instance=m,Lt(m);return}m=n.ownerDocument||n,o=ob(o),(d=Mn.get(d))&&xf(o,d),m=m.createElement("link"),Lt(m);var k=m;k._p=new Promise(function(R,P){k.onload=R,k.onerror=P}),Bt(m,"link",o),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=us.bind(t),n.addEventListener("load",i),n.addEventListener("error",i))}}var wf=0;function s2(t,n){return t.stylesheets&&t.count===0&&fs(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&fs(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+n);0<t.imgBytes&&wf===0&&(wf=62500*qw());var d=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&fs(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>wf?50:800)+n);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function us(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var cs=null;function fs(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,cs=new Map,n.forEach(u2,t),cs=null,us.call(t))}function u2(t,n){if(!(n.state.loading&4)){var i=cs.get(t);if(i)var o=i.get(null);else{i=new Map,cs.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var k=d[m];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(i.set(k.dataset.precedence,k),o=k)}o&&i.set(null,o)}d=n.instance,k=d.getAttribute("data-precedence"),m=i.get(k)||o,m===o&&i.set(null,d),i.set(k,d),this.count++,o=us.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),n.state.loading|=4}}var Ea={$$typeof:j,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function c2(t,n,i,o,d,m,k,R,P){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.hiddenUpdates=Bi(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function db(t,n,i,o,d,m,k,R,P,ee,ie,ce){return t=new c2(t,n,i,k,P,ee,ie,ce,R),n=1,m===!0&&(n|=24),m=hn(3,null,null,n),t.current=m,m.stateNode=t,n=Wu(),n.refCount++,t.pooledCache=n,n.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:n},rc(m),t}function hb(t){return t?(t=Ql,t):Ql}function pb(t,n,i,o,d,m){d=hb(d),o.context===null?o.context=d:o.pendingContext=d,o=Dr(n),o.payload={element:i},m=m===void 0?null:m,m!==null&&(o.callback=m),i=Or(t,o,n),i!==null&&(rn(i,t,n),na(i,t,n))}function mb(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Sf(t,n){mb(t,n),(t=t.alternate)&&mb(t,n)}function gb(t){if(t.tag===13||t.tag===31){var n=pl(t,67108864);n!==null&&rn(n,t,67108864),Sf(t,67108864)}}function bb(t){if(t.tag===13||t.tag===31){var n=yn();n=zl(n);var i=pl(t,n);i!==null&&rn(i,t,n),Sf(t,n)}}var ds=!0;function f2(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=2,kf(t,n,i,o)}finally{O.p=m,F.T=d}}function d2(t,n,i,o){var d=F.T;F.T=null;var m=O.p;try{O.p=8,kf(t,n,i,o)}finally{O.p=m,F.T=d}}function kf(t,n,i,o){if(ds){var d=Ef(o);if(d===null)uf(t,n,o,hs,i),xb(t,o);else if(p2(d,t,n,i,o))o.stopPropagation();else if(xb(t,o),n&4&&-1<h2.indexOf(t)){for(;d!==null;){var m=Il(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var k=qn(m.pendingLanes);if(k!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;k;){var P=1<<31-Ze(k);R.entanglements[1]|=P,k&=~P}Xn(m),(Qe&6)===0&&(Zo=tt()+500,ya(0))}}break;case 31:case 13:R=pl(m,2),R!==null&&rn(R,m,2),Ko(),Sf(m,2)}if(m=Ef(o),m===null&&uf(t,n,o,hs,i),m===d)break;d=m}d!==null&&o.stopPropagation()}else uf(t,n,o,null,i)}}function Ef(t){return t=Cu(t),Cf(t)}var hs=null;function Cf(t){if(hs=null,t=Fl(t),t!==null){var n=u(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=c(n),t!==null)return t;t=null}else if(i===31){if(t=f(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return hs=t,null}function yb(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kr()){case ae:return 2;case me:return 8;case je:case Me:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Nf=!1,Vr=null,Gr=null,Yr=null,Ca=new Map,Na=new Map,Xr=[],h2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xb(t,n){switch(t){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Gr=null;break;case"mouseover":case"mouseout":Yr=null;break;case"pointerover":case"pointerout":Ca.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Na.delete(n.pointerId)}}function Aa(t,n,i,o,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:m,targetContainers:[d]},n!==null&&(n=Il(n),n!==null&&gb(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),t)}function p2(t,n,i,o,d){switch(n){case"focusin":return Vr=Aa(Vr,t,n,i,o,d),!0;case"dragenter":return Gr=Aa(Gr,t,n,i,o,d),!0;case"mouseover":return Yr=Aa(Yr,t,n,i,o,d),!0;case"pointerover":var m=d.pointerId;return Ca.set(m,Aa(Ca.get(m)||null,t,n,i,o,d)),!0;case"gotpointercapture":return m=d.pointerId,Na.set(m,Aa(Na.get(m)||null,t,n,i,o,d)),!0}return!1}function vb(t){var n=Fl(t.target);if(n!==null){var i=u(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){t.blockedOn=n,io(t.priority,function(){bb(i)});return}}else if(n===31){if(n=f(i),n!==null){t.blockedOn=n,io(t.priority,function(){bb(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ps(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Ef(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Eu=o,i.target.dispatchEvent(o),Eu=null}else return n=Il(i),n!==null&&gb(n),t.blockedOn=i,!1;n.shift()}return!0}function wb(t,n,i){ps(t)&&i.delete(n)}function m2(){Nf=!1,Vr!==null&&ps(Vr)&&(Vr=null),Gr!==null&&ps(Gr)&&(Gr=null),Yr!==null&&ps(Yr)&&(Yr=null),Ca.forEach(wb),Na.forEach(wb)}function ms(t,n){t.blockedOn===n&&(t.blockedOn=null,Nf||(Nf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,m2)))}var gs=null;function Sb(t){gs!==t&&(gs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gs===t&&(gs=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],d=t[n+2];if(typeof o!="function"){if(Cf(o||i)===null)continue;break}var m=Il(i);m!==null&&(t.splice(n,3),n-=3,kc(m,{pending:!0,data:d,method:i.method,action:o},o,d))}}))}function vi(t){function n(P){return ms(P,t)}Vr!==null&&ms(Vr,t),Gr!==null&&ms(Gr,t),Yr!==null&&ms(Yr,t),Ca.forEach(n),Na.forEach(n);for(var i=0;i<Xr.length;i++){var o=Xr[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Xr.length&&(i=Xr[0],i.blockedOn===null);)vb(i),i.blockedOn===null&&Xr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var d=i[o],m=i[o+1],k=d[It]||null;if(typeof m=="function")k||Sb(i);else if(k){var R=null;if(m&&m.hasAttribute("formAction")){if(d=m,k=m[It]||null)R=k.formAction;else if(Cf(d)!==null)continue}else R=k.action;typeof R=="function"?i[o+1]=R:(i.splice(o,3),o-=3),Sb(i)}}}function kb(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(k){return d=k})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Af(t){this._internalRoot=t}bs.prototype.render=Af.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=yn();pb(i,o,t,n,null,null)},bs.prototype.unmount=Af.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;pb(t.current,2,null,t,null,null),Ko(),n[le]=null}};function bs(t){this._internalRoot=t}bs.prototype.unstable_scheduleHydration=function(t){if(t){var n=Bl();t={blockedOn:null,target:t,priority:n};for(var i=0;i<Xr.length&&n!==0&&n<Xr[i].priority;i++);Xr.splice(i,0,t),i===0&&vb(t)}};var Eb=r.version;if(Eb!=="19.2.3")throw Error(a(527,Eb,"19.2.3"));O.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=p(n),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var g2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{At=ys.inject(g2),yt=ys}catch{}}return ja.createRoot=function(t,n){if(!s(t))throw Error(a(299));var i=!1,o="",d=Rm,m=Lm,k=Dm;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(k=n.onRecoverableError)),n=db(t,1,!1,null,null,i,o,null,d,m,k,kb),t[le]=n.current,sf(t),new Af(n)},ja.hydrateRoot=function(t,n,i){if(!s(t))throw Error(a(299));var o=!1,d="",m=Rm,k=Lm,R=Dm,P=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(k=i.onCaughtError),i.onRecoverableError!==void 0&&(R=i.onRecoverableError),i.formState!==void 0&&(P=i.formState)),n=db(t,1,!0,n,i??null,o,d,P,m,k,R,kb),n.context=hb(null),i=n.current,o=yn(),o=zl(o),d=Dr(o),d.callback=null,Or(i,d,o),i=o,n.current.lanes=i,ul(n,i),Xn(n),t[le]=n.current,sf(t),new bs(n)},ja.version="19.2.3",ja}var Ob;function N2(){if(Ob)return _f.exports;Ob=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),_f.exports=C2(),_f.exports}var A2=N2();const T2=Ws(A2),Mx=["shift","alt","meta","mod","ctrl","control"],j2={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nl(e){return(j2[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function zx(e){return Mx.includes(e)}function Of(e,r=","){return e.toLowerCase().split(r)}function Mf(e,r="+",l=">",a=!1,s){let u=[],c=!1;e=e.trim(),e.includes(l)?(c=!0,u=e.toLocaleLowerCase().split(l).map(p=>nl(p))):u=e.toLocaleLowerCase().split(r).map(p=>nl(p));const f={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:a},h=u.filter(p=>!Mx.includes(p));return{...f,keys:h,description:s,isSequence:c,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Bx([nl(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Fx([nl(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{xr.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{xr.clear()},0)}));const xr=new Set;function lh(e){return Array.isArray(e)}function _2(e,r=","){return(lh(e)?e:e.split(r)).every(l=>xr.has(l.trim().toLowerCase()))}function Bx(e){const r=Array.isArray(e)?e:[e];xr.has("meta")&&xr.forEach(l=>!zx(l)&&xr.delete(l.toLowerCase())),r.forEach(l=>xr.add(l.toLowerCase()))}function Fx(e){const r=Array.isArray(e)?e:[e];e==="meta"?xr.clear():r.forEach(l=>xr.delete(l.toLowerCase()))}function R2(e,r,l){(typeof l=="function"&&l(e,r)||l===!0)&&e.preventDefault()}function L2(e,r,l){return typeof l=="function"?l(e,r):l===!0||l===void 0}const D2=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function O2(e){return Ix(e,D2)}function Ix(e,r=!1){const{target:l,composed:a}=e;let s,u;return M2(l)&&a?(s=e.composedPath()[0]&&e.composedPath()[0].tagName,u=e.composedPath()[0]&&e.composedPath()[0].role):(s=l&&l.tagName,u=l&&l.role),lh(r)?!!(s&&r&&r.some(c=>c.toLowerCase()===s.toLowerCase()||c===u)):!!(s&&r&&r)}function M2(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function z2(e,r){return e.length===0&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):r?e.some(l=>r.includes(l))||e.includes("*"):!0}const B2=(e,r,l=!1)=>{const{alt:a,meta:s,mod:u,shift:c,ctrl:f,keys:h,useKey:p}=r,{code:b,key:g,ctrlKey:v,metaKey:x,shiftKey:w,altKey:S}=e,N=nl(b);if(p&&h?.length===1&&h.includes(g))return!0;if(!h?.includes(N)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(N))return!1;if(!l){if(a!==S&&N!=="alt"||c!==w&&N!=="shift")return!1;if(u){if(!x&&!v)return!1}else if(s!==x&&N!=="meta"&&N!=="os"||f!==v&&N!=="ctrl"&&N!=="control")return!1}return h&&h.length===1&&h.includes(N)?!0:h?_2(h):!h},Ux=T.createContext(void 0),F2=()=>T.useContext(Ux);function I2({addHotkey:e,removeHotkey:r,children:l}){return y.jsx(Ux.Provider,{value:{addHotkey:e,removeHotkey:r},children:l})}function ih(e,r){return e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(e).length===Object.keys(r).length&&Object.keys(e).reduce((l,a)=>l&&ih(e[a],r[a]),!0):e===r}const Hx=T.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Xa=()=>T.useContext(Hx),U2=({initiallyActiveScopes:e=["*"],children:r})=>{const[l,a]=T.useState(e),[s,u]=T.useState([]),c=T.useCallback(g=>{a(v=>v.includes("*")?[g]:Array.from(new Set([...v,g])))},[]),f=T.useCallback(g=>{a(v=>v.filter(x=>x!==g))},[]),h=T.useCallback(g=>{a(v=>v.includes(g)?v.filter(x=>x!==g):v.includes("*")?[g]:Array.from(new Set([...v,g])))},[]),p=T.useCallback(g=>{u(v=>[...v,g])},[]),b=T.useCallback(g=>{u(v=>v.filter(x=>!ih(x,g)))},[]);return y.jsx(Hx.Provider,{value:{activeScopes:l,hotkeys:s,enableScope:c,disableScope:f,toggleScope:h},children:y.jsx(I2,{addHotkey:p,removeHotkey:b,children:r})})};function H2(e){const r=T.useRef(void 0);return ih(r.current,e)||(r.current=e),r.current}const Mb=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},q2=typeof window<"u"?T.useLayoutEffect:T.useEffect;function it(e,r,l,a){const s=T.useRef(null),u=T.useRef(!1),c=Array.isArray(l)?Array.isArray(a)?void 0:a:l,f=lh(e)?e.join(c?.delimiter):e,h=Array.isArray(l)?l:Array.isArray(a)?a:void 0,p=T.useCallback(r,h??[]),b=T.useRef(p);h?b.current=p:b.current=r;const g=H2(c),{activeScopes:v}=Xa(),x=F2();return q2(()=>{if(g?.enabled===!1||!z2(v,g?.scopes))return;let w=[],S;const N=(B,q=!1)=>{if(!(O2(B)&&!Ix(B,g?.enableOnFormTags))){if(s.current!==null){const L=s.current.getRootNode();if((L instanceof Document||L instanceof ShadowRoot)&&L.activeElement!==s.current&&!s.current.contains(L.activeElement)){Mb(B);return}}B.target?.isContentEditable&&!g?.enableOnContentEditable||Of(f,g?.delimiter).forEach(L=>{if(L.includes(g?.splitKey??"+")&&L.includes(g?.sequenceSplitKey??">")){console.warn(`Hotkey ${L} contains both ${g?.splitKey??"+"} and ${g?.sequenceSplitKey??">"} which is not supported.`);return}const I=Mf(L,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description);if(I.isSequence){S=setTimeout(()=>{w=[]},g?.sequenceTimeoutMs??1e3);const $=I.useKey?B.key:nl(B.code);if(zx($.toLowerCase()))return;w.push($);const G=I.keys?.[w.length-1];if($!==G){w=[],S&&clearTimeout(S);return}w.length===I.keys?.length&&(b.current(B,I),S&&clearTimeout(S),w=[])}else if(B2(B,I,g?.ignoreModifiers)||I.keys?.includes("*")){if(g?.ignoreEventWhen?.(B)||q&&u.current)return;if(R2(B,I,g?.preventDefault),!L2(B,I,g?.enabled)){Mb(B);return}b.current(B,I),q||(u.current=!0)}})}},E=B=>{B.code!==void 0&&(Bx(nl(B.code)),(g?.keydown===void 0&&g?.keyup!==!0||g?.keydown)&&N(B))},C=B=>{B.code!==void 0&&(Fx(nl(B.code)),u.current=!1,g?.keyup&&N(B,!0))},j=s.current||c?.document||document;return j.addEventListener("keyup",C,c?.eventListenerOptions),j.addEventListener("keydown",E,c?.eventListenerOptions),x&&Of(f,g?.delimiter).forEach(B=>x.addHotkey(Mf(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),()=>{j.removeEventListener("keyup",C,c?.eventListenerOptions),j.removeEventListener("keydown",E,c?.eventListenerOptions),x&&Of(f,g?.delimiter).forEach(B=>x.removeHotkey(Mf(B,g?.splitKey,g?.sequenceSplitKey,g?.useKey,g?.description))),w=[],S&&clearTimeout(S)}},[f,g,v]),s}const P2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,a)=>a?a.toUpperCase():l.toLowerCase()),zb=e=>{const r=$2(e);return r.charAt(0).toUpperCase()+r.slice(1)},qx=(...e)=>e.filter((r,l,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===l).join(" ").trim(),V2=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var G2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Y2=T.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...f},h)=>T.createElement("svg",{ref:h,...G2,width:r,height:r,stroke:e,strokeWidth:a?Number(l)*24/Number(r):l,className:qx("lucide",s),...!u&&!V2(f)&&{"aria-hidden":"true"},...f},[...c.map(([p,b])=>T.createElement(p,b)),...Array.isArray(u)?u:[u]]));const Ve=(e,r)=>{const l=T.forwardRef(({className:a,...s},u)=>T.createElement(Y2,{ref:u,iconNode:r,className:qx(`lucide-${P2(zb(e))}`,`lucide-${e}`,a),...s}));return l.displayName=zb(e),l};const X2=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],Z2=Ve("arrow-down-from-line",X2);const Q2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],K2=Ve("arrow-up-from-line",Q2);const J2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pa=Ve("check",J2);const W2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ri=Ve("chevron-down",W2);const eS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tS=Ve("chevron-left",eS);const nS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Px=Ve("chevron-right",nS);const rS=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],lS=Ve("chevrons-down-up",rS);const iS=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],aS=Ve("chevrons-up-down",iS);const oS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],sS=Ve("columns-2",oS);const uS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$x=Ve("copy",uS);const cS=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],fS=Ve("eraser",cS);const dS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],hS=Ve("external-link",dS);const pS=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rs=Ve("eye",pS);const mS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],eu=Ve("file-diff",mS);const gS=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Vx=Ve("file-pen",gS);const bS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Gx=Ve("file-plus",bS);const yS=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Yx=Ve("file-x",yS);const xS=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],vS=Ve("folder-open",xS);const wS=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],SS=Ve("folder",wS);const kS=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],ES=Ve("git-branch",kS);const CS=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],NS=Ve("keyboard",CS);const AS=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],TS=Ve("list",AS);const jS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_S=Ve("loader-circle",jS);const RS=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Xx=Ve("message-square",RS);const LS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],DS=Ve("panel-left-close",LS);const OS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],MS=Ve("panel-left",OS);const zS=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],BS=Ve("pen",zS);const FS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],IS=Ve("refresh-cw",FS);const US=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],HS=Ve("search",US);const qS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zx=Ve("settings",qS);const PS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],$S=Ve("square",PS);const VS=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],GS=Ve("text-align-start",VS);const YS=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],XS=Ve("unfold-vertical",YS);const ZS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tu=Ve("x",ZS),Za="split";function QS(e){switch(e){case"split":case"side-by-side":return"split";case"unified":case"inline":return"unified";default:return Za}}function Qx({checked:e,onChange:r,label:l,className:a="",title:s}){const u=f=>{f.stopPropagation(),r(!e)},c=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),f.stopPropagation(),r(!e))};return y.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${a}`,title:s,onClick:u,onKeyDown:c,role:"checkbox","aria-checked":e,tabIndex:0,children:[y.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${e?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:e&&y.jsx(Pa,{size:10,className:"text-white"})}),l&&y.jsx("span",{className:"select-none",children:l})]})}function Bb({commentsCount:e,isCopiedAll:r,onCopyAll:l,onDeleteAll:a,onViewAll:s,direction:u="down",compact:c=!1}){const[f,h]=T.useState(!1),p=T.useRef(null),b=c,g=u==="up";T.useEffect(()=>{const N=E=>{p.current&&!p.current.contains(E.target)&&h(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const v=()=>{l(),h(!1)},x=()=>{a(),h(!1)},w=()=>{s?.(),h(!1)},S=b?r?"Copied":`Copy All (${e})`:r?"Copied All!":`Copy All Prompt (${e})`;return y.jsxs("div",{className:"relative",ref:p,children:[y.jsxs("div",{className:"flex",children:[y.jsxs("button",{onClick:v,className:`text-xs px-3 py-1.5 pr-2 rounded-l transition-all flex items-center gap-1.5 ${b?"whitespace-normal":"whitespace-nowrap"}`,style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${e} comments to AI coding agent`,children:[r?y.jsx(Pa,{size:12}):y.jsx($x,{size:12}),S]}),y.jsx("button",{onClick:()=>h(!f),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:y.jsx(Ri,{size:12,className:`transition-transform duration-200 ${f?"rotate-180":""}`})})]}),f&&y.jsxs("div",{className:`absolute left-0 right-0 bg-github-bg-primary border border-github-border z-50 pb-px ${g?"bottom-full rounded-t":"top-full rounded-b"}`,style:{borderTop:g?void 0:"none",borderBottom:g?"none":void 0},children:[s&&y.jsxs("button",{onClick:w,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:e===0,children:[y.jsx(TS,{size:12}),"View All Comments"]}),y.jsxs("button",{onClick:x,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[y.jsx(fS,{size:12}),"Cleanup All Prompt"]})]})]})}function ah({comment:e,onGeneratePrompt:r,onRemoveComment:l,onUpdateComment:a,onClick:s}){const[u,c]=T.useState(!1),[f,h]=T.useState(!1),[p,b]=T.useState(e.body),g=async E=>{E.stopPropagation();try{const C=r(e);await navigator.clipboard.writeText(C),c(!0),setTimeout(()=>c(!1),2e3)}catch(C){console.error("Failed to copy prompt:",C)}},v=E=>{E.stopPropagation(),h(!0),b(e.body)},x=()=>{h(!1),b(e.body)},w=E=>{E?.stopPropagation(),p.trim()!==e.body&&a(e.id,p.trim()),h(!1)},S=E=>{E.stopPropagation(),l(e.id)},N=E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),w()):E.key==="Escape"&&(E.preventDefault(),x())};return it("escape",()=>{f&&x()},{enableOnFormTags:["textarea"],enabled:f},[f]),it("mod+enter",()=>{f&&w()},{enableOnFormTags:["textarea"],enabled:f},[f,p,e.body]),y.jsxs("div",{id:`comment-${e.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${s?"hover:shadow-md cursor-pointer":""}`,onClick:s,children:[y.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[y.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:y.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[e.file,":",Array.isArray(e.line)?`${e.line[0]}-${e.line[1]}`:e.line]})}),y.jsx("div",{className:"flex items-center gap-2",children:!f&&y.jsxs(y.Fragment,{children:[y.jsx("button",{onClick:g,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:u?"Copied!":"Copy Prompt"}),y.jsx("button",{onClick:v,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:y.jsx(BS,{size:12})}),y.jsx("button",{onClick:S,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:y.jsx(Pa,{size:12})})]})})]}),f?y.jsxs("div",{children:[y.jsx("textarea",{value:p,onChange:E=>b(E.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,p.split(`
|
|
10
|
+
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:E=>E.stopPropagation(),onKeyDown:E=>{E.stopPropagation(),N(E)}}),y.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[y.jsx("button",{type:"button",onClick:x,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),y.jsx("button",{type:"button",onClick:w,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!p.trim(),children:"Submit"})]})]}):y.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:e.body})]})}function KS({isOpen:e,onClose:r,onNavigate:l,comments:a,onRemoveComment:s,onGeneratePrompt:u,onUpdateComment:c}){const[f,h]=T.useState(0),p=T.useRef([]),{enableScope:b,disableScope:g}=Xa(),v=[...a].sort((N,E)=>{const C=N.file.localeCompare(E.file);if(C!==0)return C;const j=Array.isArray(N.line)?N.line[0]:N.line,B=Array.isArray(E.line)?E.line[0]:E.line;return j-B}),x=T.useCallback(N=>{l(N),r()},[l,r]),w=T.useCallback(N=>{confirm(`Delete this comment?
|
|
11
|
+
|
|
12
|
+
"${N.body}"`)&&(s(N.id),f>=v.length-1&&f>0&&h(f-1))},[s,f,v.length]);T.useEffect(()=>(e?(b("comments-list"),g("navigation")):(b("navigation"),g("comments-list"),h(0)),()=>{b("navigation"),g("comments-list")}),[e,b,g]);const S={scopes:"comments-list",enableOnFormTags:!1};return it("escape",()=>r(),S,[r]),it("j, down",()=>h(N=>Math.min(N+1,v.length-1)),S,[v.length]),it("k, up",()=>h(N=>Math.max(N-1,0)),S,[]),it("enter",()=>{v[f]&&x(v[f])},S,[f,v,x]),it("d",()=>{v[f]&&w(v[f])},S,[f,v,w]),T.useEffect(()=>{p.current[f]&&p.current[f]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[f]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:y.jsx(tu,{size:20})})]}),y.jsxs("div",{className:"text-xs text-github-text-secondary",children:[y.jsx("span",{className:"font-mono",children:"j/k"})," or ",y.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",y.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",y.jsx("span",{className:"font-mono",children:"d"})," to delete • ",y.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),y.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:y.jsx("div",{className:"p-6",children:v.length===0?y.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"space-y-2",children:v.map((N,E)=>y.jsx("div",{ref:C=>{p.current[E]=C},className:`${f===E?"ring-2 ring-blue-500 rounded":""}`,children:y.jsx(ah,{comment:N,onGeneratePrompt:u,onRemoveComment:s,onUpdateComment:c,onClick:C=>{C.stopPropagation(),h(E),x(N)}})},N.id))}),v.length>0&&y.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[f+1," of ",v.length," comments"]})]})})})]})]}):null}function nu(){return typeof window<"u"}function ll(e){return oh(e)?(e.nodeName||"").toLowerCase():"#document"}function sn(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Jn(e){var r;return(r=(oh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function oh(e){return nu()?e instanceof Node||e instanceof sn(e).Node:!1}function ct(e){return nu()?e instanceof Element||e instanceof sn(e).Element:!1}function Nt(e){return nu()?e instanceof HTMLElement||e instanceof sn(e).HTMLElement:!1}function Ls(e){return!nu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sn(e).ShadowRoot}const JS=new Set(["inline","contents"]);function Qa(e){const{overflow:r,overflowX:l,overflowY:a,display:s}=Bn(e);return/auto|scroll|overlay|hidden|clip/.test(r+a+l)&&!JS.has(s)}const WS=new Set(["table","td","th"]);function ek(e){return WS.has(ll(e))}const tk=[":popover-open",":modal"];function ru(e){return tk.some(r=>{try{return e.matches(r)}catch{return!1}})}const nk=["transform","translate","scale","rotate","perspective"],rk=["transform","translate","scale","rotate","perspective","filter"],lk=["paint","layout","strict","content"];function sh(e){const r=lu(),l=ct(e)?Bn(e):e;return nk.some(a=>l[a]?l[a]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!r&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!r&&(l.filter?l.filter!=="none":!1)||rk.some(a=>(l.willChange||"").includes(a))||lk.some(a=>(l.contain||"").includes(a))}function ik(e){let r=wr(e);for(;Nt(r)&&!vr(r);){if(sh(r))return r;if(ru(r))return null;r=wr(r)}return null}function lu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ak=new Set(["html","body","#document"]);function vr(e){return ak.has(ll(e))}function Bn(e){return sn(e).getComputedStyle(e)}function iu(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wr(e){if(ll(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Ls(e)&&e.host||Jn(e);return Ls(r)?r.host:r}function Kx(e){const r=wr(e);return vr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(r)&&Qa(r)?r:Kx(r)}function rl(e,r,l){var a;r===void 0&&(r=[]),l===void 0&&(l=!0);const s=Kx(e),u=s===((a=e.ownerDocument)==null?void 0:a.body),c=sn(s);if(u){const f=vd(c);return r.concat(c,c.visualViewport||[],Qa(s)?s:[],f&&l?rl(f):[])}return r.concat(s,rl(s,[],l))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ds=Math.min,jl=Math.max,Os=Math.round,xs=Math.floor,Qn=e=>({x:e,y:e}),ok={left:"right",right:"left",bottom:"top",top:"bottom"},sk={start:"end",end:"start"};function Fb(e,r,l){return jl(e,Ds(r,l))}function au(e,r){return typeof e=="function"?e(r):e}function _l(e){return e.split("-")[0]}function ou(e){return e.split("-")[1]}function Jx(e){return e==="x"?"y":"x"}function Wx(e){return e==="y"?"height":"width"}const uk=new Set(["top","bottom"]);function el(e){return uk.has(_l(e))?"y":"x"}function e1(e){return Jx(el(e))}function ck(e,r,l){l===void 0&&(l=!1);const a=ou(e),s=e1(e),u=Wx(s);let c=s==="x"?a===(l?"end":"start")?"right":"left":a==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=Ms(c)),[c,Ms(c)]}function fk(e){const r=Ms(e);return[wd(e),r,wd(r)]}function wd(e){return e.replace(/start|end/g,r=>sk[r])}const Ib=["left","right"],Ub=["right","left"],dk=["top","bottom"],hk=["bottom","top"];function pk(e,r,l){switch(e){case"top":case"bottom":return l?r?Ub:Ib:r?Ib:Ub;case"left":case"right":return r?dk:hk;default:return[]}}function mk(e,r,l,a){const s=ou(e);let u=pk(_l(e),l==="start",a);return s&&(u=u.map(c=>c+"-"+s),r&&(u=u.concat(u.map(wd)))),u}function Ms(e){return e.replace(/left|right|bottom|top/g,r=>ok[r])}function gk(e){return{top:0,right:0,bottom:0,left:0,...e}}function bk(e){return typeof e!="number"?gk(e):{top:e,right:e,bottom:e,left:e}}function zs(e){const{x:r,y:l,width:a,height:s}=e;return{width:a,height:s,top:l,left:r,right:r+a,bottom:l+s,x:r,y:l}}var yk=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Bs=yk.join(","),t1=typeof Element>"u",Li=t1?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Fs=!t1&&Element.prototype.getRootNode?function(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}:function(e){return e?.ownerDocument},Is=function(r,l){var a;l===void 0&&(l=!0);var s=r==null||(a=r.getAttribute)===null||a===void 0?void 0:a.call(r,"inert"),u=s===""||s==="true",c=u||l&&r&&(typeof r.closest=="function"?r.closest("[inert]"):Is(r.parentNode));return c},xk=function(r){var l,a=r==null||(l=r.getAttribute)===null||l===void 0?void 0:l.call(r,"contenteditable");return a===""||a==="true"},n1=function(r,l,a){if(Is(r))return[];var s=Array.prototype.slice.apply(r.querySelectorAll(Bs));return l&&Li.call(r,Bs)&&s.unshift(r),s=s.filter(a),s},Us=function(r,l,a){for(var s=[],u=Array.from(r);u.length;){var c=u.shift();if(!Is(c,!1))if(c.tagName==="SLOT"){var f=c.assignedElements(),h=f.length?f:c.children,p=Us(h,!0,a);a.flatten?s.push.apply(s,p):s.push({scopeParent:c,candidates:p})}else{var b=Li.call(c,Bs);b&&a.filter(c)&&(l||!r.includes(c))&&s.push(c);var g=c.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(c),v=!Is(g,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(c));if(g&&v){var x=Us(g===!0?c.children:g.children,!0,a);a.flatten?s.push.apply(s,x):s.push({scopeParent:c,candidates:x})}else u.unshift.apply(u,c.children)}}return s},r1=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},l1=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||xk(r))&&!r1(r)?0:r.tabIndex},vk=function(r,l){var a=l1(r);return a<0&&l&&!r1(r)?0:a},wk=function(r,l){return r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex},i1=function(r){return r.tagName==="INPUT"},Sk=function(r){return i1(r)&&r.type==="hidden"},kk=function(r){var l=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(a){return a.tagName==="SUMMARY"});return l},Ek=function(r,l){for(var a=0;a<r.length;a++)if(r[a].checked&&r[a].form===l)return r[a]},Ck=function(r){if(!r.name)return!0;var l=r.form||Fs(r),a=function(f){return l.querySelectorAll('input[type="radio"][name="'+f+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=a(window.CSS.escape(r.name));else try{s=a(r.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var u=Ek(s,r.form);return!u||u===r},Nk=function(r){return i1(r)&&r.type==="radio"},Ak=function(r){return Nk(r)&&!Ck(r)},Tk=function(r){var l,a=r&&Fs(r),s=(l=a)===null||l===void 0?void 0:l.host,u=!1;if(a&&a!==r){var c,f,h;for(u=!!((c=s)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(s)||r!=null&&(h=r.ownerDocument)!==null&&h!==void 0&&h.contains(r));!u&&s;){var p,b,g;a=Fs(s),s=(p=a)===null||p===void 0?void 0:p.host,u=!!((b=s)!==null&&b!==void 0&&(g=b.ownerDocument)!==null&&g!==void 0&&g.contains(s))}}return u},Hb=function(r){var l=r.getBoundingClientRect(),a=l.width,s=l.height;return a===0&&s===0},jk=function(r,l){var a=l.displayCheck,s=l.getShadowRoot;if(a==="full-native"&&"checkVisibility"in r){var u=r.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!u}if(getComputedStyle(r).visibility==="hidden")return!0;var c=Li.call(r,"details>summary:first-of-type"),f=c?r.parentElement:r;if(Li.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof s=="function"){for(var h=r;r;){var p=r.parentElement,b=Fs(r);if(p&&!p.shadowRoot&&s(p)===!0)return Hb(r);r.assignedSlot?r=r.assignedSlot:!p&&b!==r.ownerDocument?r=b.host:r=p}r=h}if(Tk(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Hb(r);return!1},_k=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var l=r.parentElement;l;){if(l.tagName==="FIELDSET"&&l.disabled){for(var a=0;a<l.children.length;a++){var s=l.children.item(a);if(s.tagName==="LEGEND")return Li.call(l,"fieldset[disabled] *")?!0:!s.contains(r)}return!0}l=l.parentElement}return!1},Sd=function(r,l){return!(l.disabled||Sk(l)||jk(l,r)||kk(l)||_k(l))},kd=function(r,l){return!(Ak(l)||l1(l)<0||!Sd(r,l))},Rk=function(r){var l=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(l)||l>=0)},a1=function(r){var l=[],a=[];return r.forEach(function(s,u){var c=!!s.scopeParent,f=c?s.scopeParent:s,h=vk(f,c),p=c?a1(s.candidates):f;h===0?c?l.push.apply(l,p):l.push(f):a.push({documentOrder:u,tabIndex:h,item:s,isScope:c,content:p})}),a.sort(wk).reduce(function(s,u){return u.isScope?s.push.apply(s,u.content):s.push(u.content),s},[]).concat(l)},su=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Us([r],l.includeContainer,{filter:kd.bind(null,l),flatten:!1,getShadowRoot:l.getShadowRoot,shadowRootFilter:Rk}):a=n1(r,l.includeContainer,kd.bind(null,l)),a1(a)},Lk=function(r,l){l=l||{};var a;return l.getShadowRoot?a=Us([r],l.includeContainer,{filter:Sd.bind(null,l),flatten:!0,getShadowRoot:l.getShadowRoot}):a=n1(r,l.includeContainer,Sd.bind(null,l)),a},o1=function(r,l){if(l=l||{},!r)throw new Error("No node provided");return Li.call(r,Bs)===!1?!1:kd(l,r)};function s1(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function u1(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:l,version:a}=r;return l+"/"+a}).join(" "):navigator.userAgent}function c1(){return/apple/i.test(navigator.vendor)}function Ed(){const e=/android/i;return e.test(s1())||e.test(u1())}function Dk(){return s1().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f1(){return u1().includes("jsdom/")}const qb="data-floating-ui-focusable",Ok="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Wr(e){let r=e.activeElement;for(;((l=r)==null||(l=l.shadowRoot)==null?void 0:l.activeElement)!=null;){var l;r=r.shadowRoot.activeElement}return r}function qt(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&Ls(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function yr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zf(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const l=e;return l.target!=null&&r.contains(l.target)}function Mk(e){return e.matches("html,body")}function Pt(e){return e?.ownerDocument||document}function uh(e){return Nt(e)&&e.matches(Ok)}function Pb(e){return e?e.getAttribute("role")==="combobox"&&uh(e):!1}function zk(e){if(!e||f1())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Cd(e){return e?e.hasAttribute(qb)?e:e.querySelector("["+qb+"]")||e:null}function Ai(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...Ai(e,s.id,l)])}function $b(e,r){var l;let a=[],s=(l=e.find(u=>u.id===r))==null?void 0:l.parentId;for(;s;){const u=e.find(c=>c.id===s);s=u?.parentId,u&&(a=a.concat(u))}return a}function Bf(e){e.preventDefault(),e.stopPropagation()}function Bk(e){return"nativeEvent"in e}function Fk(e){return e.mozInputSource===0&&e.isTrusted?!0:Ed()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ik(e){return f1()?!1:!Ed()&&e.width===0&&e.height===0||Ed()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function $a(e,r){const l=["mouse","pen"];return r||l.push("",void 0),l.includes(e)}var Uk=typeof document<"u",Hk=function(){},on=Uk?T.useLayoutEffect:Hk;const qk={...Dx};function Tl(e){const r=T.useRef(e);return on(()=>{r.current=e}),r}const Pk=qk.useInsertionEffect,$k=Pk||(e=>e());function an(e){const r=T.useRef(()=>{});return $k(()=>{r.current=e}),T.useCallback(function(){for(var l=arguments.length,a=new Array(l),s=0;s<l;s++)a[s]=arguments[s];return r.current==null?void 0:r.current(...a)},[])}const Ka=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function d1(e,r){const l=su(e,Ka()),a=l.length;if(a===0)return;const s=Wr(Pt(e)),u=l.indexOf(s),c=u===-1?r===1?0:a-1:u+r;return l[c]}function h1(e){return d1(Pt(e).body,1)||e}function p1(e){return d1(Pt(e).body,-1)||e}function Ba(e,r){const l=r||e.currentTarget,a=e.relatedTarget;return!a||!qt(l,a)}function Vk(e){su(e,Ka()).forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")})}function Vb(e){e.querySelectorAll("[data-tabindex]").forEach(l=>{const a=l.dataset.tabindex;delete l.dataset.tabindex,a?l.setAttribute("tabindex",a):l.removeAttribute("tabindex")})}var m1=Ox();function Gb(e,r,l){let{reference:a,floating:s}=e;const u=el(r),c=e1(r),f=Wx(c),h=_l(r),p=u==="y",b=a.x+a.width/2-s.width/2,g=a.y+a.height/2-s.height/2,v=a[f]/2-s[f]/2;let x;switch(h){case"top":x={x:b,y:a.y-s.height};break;case"bottom":x={x:b,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:g};break;case"left":x={x:a.x-s.width,y:g};break;default:x={x:a.x,y:a.y}}switch(ou(r)){case"start":x[c]-=v*(l&&p?-1:1);break;case"end":x[c]+=v*(l&&p?-1:1);break}return x}const Gk=async(e,r,l)=>{const{placement:a="bottom",strategy:s="absolute",middleware:u=[],platform:c}=l,f=u.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(r));let p=await c.getElementRects({reference:e,floating:r,strategy:s}),{x:b,y:g}=Gb(p,a,h),v=a,x={},w=0;for(let S=0;S<f.length;S++){const{name:N,fn:E}=f[S],{x:C,y:j,data:B,reset:q}=await E({x:b,y:g,initialPlacement:a,placement:v,strategy:s,middlewareData:x,rects:p,platform:c,elements:{reference:e,floating:r}});b=C??b,g=j??g,x={...x,[N]:{...x[N],...B}},q&&w<=50&&(w++,typeof q=="object"&&(q.placement&&(v=q.placement),q.rects&&(p=q.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:s}):q.rects),{x:b,y:g}=Gb(p,v,h)),S=-1)}return{x:b,y:g,placement:v,strategy:s,middlewareData:x}};async function g1(e,r){var l;r===void 0&&(r={});const{x:a,y:s,platform:u,rects:c,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:b="viewport",elementContext:g="floating",altBoundary:v=!1,padding:x=0}=au(r,e),w=bk(x),N=f[v?g==="floating"?"reference":"floating":g],E=zs(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(N)))==null||l?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:p,rootBoundary:b,strategy:h})),C=g==="floating"?{x:a,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),B=await(u.isElement==null?void 0:u.isElement(j))?await(u.getScale==null?void 0:u.getScale(j))||{x:1,y:1}:{x:1,y:1},q=zs(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:j,strategy:h}):C);return{top:(E.top-q.top+w.top)/B.y,bottom:(q.bottom-E.bottom+w.bottom)/B.y,left:(E.left-q.left+w.left)/B.x,right:(q.right-E.right+w.right)/B.x}}const Yk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var l,a;const{placement:s,middlewareData:u,rects:c,initialPlacement:f,platform:h,elements:p}=r,{mainAxis:b=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...N}=au(e,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const E=_l(s),C=el(f),j=_l(f)===f,B=await(h.isRTL==null?void 0:h.isRTL(p.floating)),q=v||(j||!S?[Ms(f)]:fk(f)),L=w!=="none";!v&&L&&q.push(...mk(f,S,w,B));const I=[f,...q],$=await g1(r,N),G=[];let M=((a=u.flip)==null?void 0:a.overflows)||[];if(b&&G.push($[E]),g){const U=ck(s,c,B);G.push($[U[0]],$[U[1]])}if(M=[...M,{placement:s,overflows:G}],!G.every(U=>U<=0)){var V,Y;const U=(((V=u.flip)==null?void 0:V.index)||0)+1,X=I[U];if(X&&(!(g==="alignment"?C!==el(X):!1)||M.every(z=>el(z.placement)===C?z.overflows[0]>0:!0)))return{data:{index:U,overflows:M},reset:{placement:X}};let F=(Y=M.filter(O=>O.overflows[0]<=0).sort((O,z)=>O.overflows[1]-z.overflows[1])[0])==null?void 0:Y.placement;if(!F)switch(x){case"bestFit":{var J;const O=(J=M.filter(z=>{if(L){const Q=el(z.placement);return Q===C||Q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(Q=>Q>0).reduce((Q,_)=>Q+_,0)]).sort((z,Q)=>z[1]-Q[1])[0])==null?void 0:J[0];O&&(F=O);break}case"initialPlacement":F=f;break}if(s!==F)return{reset:{placement:F}}}return{}}}},Xk=new Set(["left","top"]);async function Zk(e,r){const{placement:l,platform:a,elements:s}=e,u=await(a.isRTL==null?void 0:a.isRTL(s.floating)),c=_l(l),f=ou(l),h=el(l)==="y",p=Xk.has(c)?-1:1,b=u&&h?-1:1,g=au(r,e);let{mainAxis:v,crossAxis:x,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(x=f==="end"?w*-1:w),h?{x:x*b,y:v*p}:{x:v*p,y:x*b}}const Qk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var l,a;const{x:s,y:u,placement:c,middlewareData:f}=r,h=await Zk(r,e);return c===((l=f.offset)==null?void 0:l.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:s+h.x,y:u+h.y,data:{...h,placement:c}}}}},Kk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:l,y:a,placement:s}=r,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:N=>{let{x:E,y:C}=N;return{x:E,y:C}}},...h}=au(e,r),p={x:l,y:a},b=await g1(r,h),g=el(_l(s)),v=Jx(g);let x=p[v],w=p[g];if(u){const N=v==="y"?"top":"left",E=v==="y"?"bottom":"right",C=x+b[N],j=x-b[E];x=Fb(C,x,j)}if(c){const N=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=w+b[N],j=w-b[E];w=Fb(C,w,j)}const S=f.fn({...r,[v]:x,[g]:w});return{...S,data:{x:S.x-l,y:S.y-a,enabled:{[v]:u,[g]:c}}}}}};function b1(e){const r=Bn(e);let l=parseFloat(r.width)||0,a=parseFloat(r.height)||0;const s=Nt(e),u=s?e.offsetWidth:l,c=s?e.offsetHeight:a,f=Os(l)!==u||Os(a)!==c;return f&&(l=u,a=c),{width:l,height:a,$:f}}function ch(e){return ct(e)?e:e.contextElement}function Ti(e){const r=ch(e);if(!Nt(r))return Qn(1);const l=r.getBoundingClientRect(),{width:a,height:s,$:u}=b1(r);let c=(u?Os(l.width):l.width)/a,f=(u?Os(l.height):l.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const Jk=Qn(0);function y1(e){const r=sn(e);return!lu()||!r.visualViewport?Jk:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Wk(e,r,l){return r===void 0&&(r=!1),!l||r&&l!==sn(e)?!1:r}function Rl(e,r,l,a){r===void 0&&(r=!1),l===void 0&&(l=!1);const s=e.getBoundingClientRect(),u=ch(e);let c=Qn(1);r&&(a?ct(a)&&(c=Ti(a)):c=Ti(e));const f=Wk(u,l,a)?y1(u):Qn(0);let h=(s.left+f.x)/c.x,p=(s.top+f.y)/c.y,b=s.width/c.x,g=s.height/c.y;if(u){const v=sn(u),x=a&&ct(a)?sn(a):a;let w=v,S=vd(w);for(;S&&a&&x!==w;){const N=Ti(S),E=S.getBoundingClientRect(),C=Bn(S),j=E.left+(S.clientLeft+parseFloat(C.paddingLeft))*N.x,B=E.top+(S.clientTop+parseFloat(C.paddingTop))*N.y;h*=N.x,p*=N.y,b*=N.x,g*=N.y,h+=j,p+=B,w=sn(S),S=vd(w)}}return zs({width:b,height:g,x:h,y:p})}function uu(e,r){const l=iu(e).scrollLeft;return r?r.left+l:Rl(Jn(e)).left+l}function x1(e,r){const l=e.getBoundingClientRect(),a=l.left+r.scrollLeft-uu(e,l),s=l.top+r.scrollTop;return{x:a,y:s}}function eE(e){let{elements:r,rect:l,offsetParent:a,strategy:s}=e;const u=s==="fixed",c=Jn(a),f=r?ru(r.floating):!1;if(a===c||f&&u)return l;let h={scrollLeft:0,scrollTop:0},p=Qn(1);const b=Qn(0),g=Nt(a);if((g||!g&&!u)&&((ll(a)!=="body"||Qa(c))&&(h=iu(a)),Nt(a))){const x=Rl(a);p=Ti(a),b.x=x.x+a.clientLeft,b.y=x.y+a.clientTop}const v=c&&!g&&!u?x1(c,h):Qn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-h.scrollLeft*p.x+b.x+v.x,y:l.y*p.y-h.scrollTop*p.y+b.y+v.y}}function tE(e){return Array.from(e.getClientRects())}function nE(e){const r=Jn(e),l=iu(e),a=e.ownerDocument.body,s=jl(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),u=jl(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let c=-l.scrollLeft+uu(e);const f=-l.scrollTop;return Bn(a).direction==="rtl"&&(c+=jl(r.clientWidth,a.clientWidth)-s),{width:s,height:u,x:c,y:f}}const Yb=25;function rE(e,r){const l=sn(e),a=Jn(e),s=l.visualViewport;let u=a.clientWidth,c=a.clientHeight,f=0,h=0;if(s){u=s.width,c=s.height;const b=lu();(!b||b&&r==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}const p=uu(a);if(p<=0){const b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(a.clientWidth-g.clientWidth-x);w<=Yb&&(u-=w)}else p<=Yb&&(u+=p);return{width:u,height:c,x:f,y:h}}const lE=new Set(["absolute","fixed"]);function iE(e,r){const l=Rl(e,!0,r==="fixed"),a=l.top+e.clientTop,s=l.left+e.clientLeft,u=Nt(e)?Ti(e):Qn(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,h=s*u.x,p=a*u.y;return{width:c,height:f,x:h,y:p}}function Xb(e,r,l){let a;if(r==="viewport")a=rE(e,l);else if(r==="document")a=nE(Jn(e));else if(ct(r))a=iE(r,l);else{const s=y1(e);a={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return zs(a)}function v1(e,r){const l=wr(e);return l===r||!ct(l)||vr(l)?!1:Bn(l).position==="fixed"||v1(l,r)}function aE(e,r){const l=r.get(e);if(l)return l;let a=rl(e,[],!1).filter(f=>ct(f)&&ll(f)!=="body"),s=null;const u=Bn(e).position==="fixed";let c=u?wr(e):e;for(;ct(c)&&!vr(c);){const f=Bn(c),h=sh(c);!h&&f.position==="fixed"&&(s=null),(u?!h&&!s:!h&&f.position==="static"&&!!s&&lE.has(s.position)||Qa(c)&&!h&&v1(e,c))?a=a.filter(b=>b!==c):s=f,c=wr(c)}return r.set(e,a),a}function oE(e){let{element:r,boundary:l,rootBoundary:a,strategy:s}=e;const c=[...l==="clippingAncestors"?ru(r)?[]:aE(r,this._c):[].concat(l),a],f=c[0],h=c.reduce((p,b)=>{const g=Xb(r,b,s);return p.top=jl(g.top,p.top),p.right=Ds(g.right,p.right),p.bottom=Ds(g.bottom,p.bottom),p.left=jl(g.left,p.left),p},Xb(r,f,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function sE(e){const{width:r,height:l}=b1(e);return{width:r,height:l}}function uE(e,r,l){const a=Nt(r),s=Jn(r),u=l==="fixed",c=Rl(e,!0,u,r);let f={scrollLeft:0,scrollTop:0};const h=Qn(0);function p(){h.x=uu(s)}if(a||!a&&!u)if((ll(r)!=="body"||Qa(s))&&(f=iu(r)),a){const x=Rl(r,!0,u,r);h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}else s&&p();u&&!a&&s&&p();const b=s&&!a&&!u?x1(s,f):Qn(0),g=c.left+f.scrollLeft-h.x-b.x,v=c.top+f.scrollTop-h.y-b.y;return{x:g,y:v,width:c.width,height:c.height}}function Ff(e){return Bn(e).position==="static"}function Zb(e,r){if(!Nt(e)||Bn(e).position==="fixed")return null;if(r)return r(e);let l=e.offsetParent;return Jn(e)===l&&(l=l.ownerDocument.body),l}function w1(e,r){const l=sn(e);if(ru(e))return l;if(!Nt(e)){let s=wr(e);for(;s&&!vr(s);){if(ct(s)&&!Ff(s))return s;s=wr(s)}return l}let a=Zb(e,r);for(;a&&ek(a)&&Ff(a);)a=Zb(a,r);return a&&vr(a)&&Ff(a)&&!sh(a)?l:a||ik(e)||l}const cE=async function(e){const r=this.getOffsetParent||w1,l=this.getDimensions,a=await l(e.floating);return{reference:uE(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function fE(e){return Bn(e).direction==="rtl"}const dE={convertOffsetParentRelativeRectToViewportRelativeRect:eE,getDocumentElement:Jn,getClippingRect:oE,getOffsetParent:w1,getElementRects:cE,getClientRects:tE,getDimensions:sE,getScale:Ti,isElement:ct,isRTL:fE};function S1(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function hE(e,r){let l=null,a;const s=Jn(e);function u(){var f;clearTimeout(a),(f=l)==null||f.disconnect(),l=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),u();const p=e.getBoundingClientRect(),{left:b,top:g,width:v,height:x}=p;if(f||r(),!v||!x)return;const w=xs(g),S=xs(s.clientWidth-(b+v)),N=xs(s.clientHeight-(g+x)),E=xs(b),j={rootMargin:-w+"px "+-S+"px "+-N+"px "+-E+"px",threshold:jl(0,Ds(1,h))||1};let B=!0;function q(L){const I=L[0].intersectionRatio;if(I!==h){if(!B)return c();I?c(!1,I):a=setTimeout(()=>{c(!1,1e-7)},1e3)}I===1&&!S1(p,e.getBoundingClientRect())&&c(),B=!1}try{l=new IntersectionObserver(q,{...j,root:s.ownerDocument})}catch{l=new IntersectionObserver(q,j)}l.observe(e)}return c(!0),u}function Nd(e,r,l,a){a===void 0&&(a={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,p=ch(e),b=s||u?[...p?rl(p):[],...rl(r)]:[];b.forEach(E=>{s&&E.addEventListener("scroll",l,{passive:!0}),u&&E.addEventListener("resize",l)});const g=p&&f?hE(p,l):null;let v=-1,x=null;c&&(x=new ResizeObserver(E=>{let[C]=E;C&&C.target===p&&x&&(x.unobserve(r),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var j;(j=x)==null||j.observe(r)})),l()}),p&&!h&&x.observe(p),x.observe(r));let w,S=h?Rl(e):null;h&&N();function N(){const E=Rl(e);S&&!S1(S,E)&&l(),S=E,w=requestAnimationFrame(N)}return l(),()=>{var E;b.forEach(C=>{s&&C.removeEventListener("scroll",l),u&&C.removeEventListener("resize",l)}),g?.(),(E=x)==null||E.disconnect(),x=null,h&&cancelAnimationFrame(w)}}const pE=Qk,mE=Kk,gE=Yk,bE=(e,r,l)=>{const a=new Map,s={platform:dE,...l},u={...s.platform,_c:a};return Gk(e,r,{...s,platform:u})};var yE=typeof document<"u",xE=function(){},js=yE?T.useLayoutEffect:xE;function Hs(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let l,a,s;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==r.length)return!1;for(a=l;a--!==0;)if(!Hs(e[a],r[a]))return!1;return!0}if(s=Object.keys(e),l=s.length,l!==Object.keys(r).length)return!1;for(a=l;a--!==0;)if(!{}.hasOwnProperty.call(r,s[a]))return!1;for(a=l;a--!==0;){const u=s[a];if(!(u==="_owner"&&e.$$typeof)&&!Hs(e[u],r[u]))return!1}return!0}return e!==e&&r!==r}function k1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qb(e,r){const l=k1(e);return Math.round(r*l)/l}function If(e){const r=T.useRef(e);return js(()=>{r.current=e}),r}function vE(e){e===void 0&&(e={});const{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:h,open:p}=e,[b,g]=T.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[v,x]=T.useState(a);Hs(v,a)||x(a);const[w,S]=T.useState(null),[N,E]=T.useState(null),C=T.useCallback(z=>{z!==L.current&&(L.current=z,S(z))},[]),j=T.useCallback(z=>{z!==I.current&&(I.current=z,E(z))},[]),B=u||w,q=c||N,L=T.useRef(null),I=T.useRef(null),$=T.useRef(b),G=h!=null,M=If(h),V=If(s),Y=If(p),J=T.useCallback(()=>{if(!L.current||!I.current)return;const z={placement:r,strategy:l,middleware:v};V.current&&(z.platform=V.current),bE(L.current,I.current,z).then(Q=>{const _={...Q,isPositioned:Y.current!==!1};U.current&&!Hs($.current,_)&&($.current=_,m1.flushSync(()=>{g(_)}))})},[v,r,l,V,Y]);js(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[p]);const U=T.useRef(!1);js(()=>(U.current=!0,()=>{U.current=!1}),[]),js(()=>{if(B&&(L.current=B),q&&(I.current=q),B&&q){if(M.current)return M.current(B,q,J);J()}},[B,q,J,M,G]);const X=T.useMemo(()=>({reference:L,floating:I,setReference:C,setFloating:j}),[C,j]),F=T.useMemo(()=>({reference:B,floating:q}),[B,q]),O=T.useMemo(()=>{const z={position:l,left:0,top:0};if(!F.floating)return z;const Q=Qb(F.floating,b.x),_=Qb(F.floating,b.y);return f?{...z,transform:"translate("+Q+"px, "+_+"px)",...k1(F.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:Q,top:_}},[l,f,F.floating,b.x,b.y]);return T.useMemo(()=>({...b,update:J,refs:X,elements:F,floatingStyles:O}),[b,J,X,F,O])}const Ad=(e,r)=>({...pE(e),options:[e,r]}),Td=(e,r)=>({...mE(e),options:[e,r]}),jd=(e,r)=>({...gE(e),options:[e,r]}),wE="data-floating-ui-focusable",Kb="active",Jb="selected",SE={...Dx};let Wb=!1,kE=0;const ey=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+kE++;function EE(){const[e,r]=T.useState(()=>Wb?ey():void 0);return on(()=>{e==null&&r(ey())},[]),T.useEffect(()=>{Wb=!0},[]),e}const CE=SE.useId,fh=CE||EE;function NE(){const e=new Map;return{emit(r,l){var a;(a=e.get(r))==null||a.forEach(s=>s(l))},on(r,l){e.has(r)||e.set(r,new Set),e.get(r).add(l)},off(r,l){var a;(a=e.get(r))==null||a.delete(l)}}}const AE=T.createContext(null),TE=T.createContext(null),dh=()=>{var e;return((e=T.useContext(AE))==null?void 0:e.id)||null},cu=()=>T.useContext(TE);function Ll(e){return"data-floating-ui-"+e}function Zt(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const ty=Ll("safe-polygon");function Uf(e,r,l){if(l&&!$a(l))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const a=e();return typeof a=="number"?a:a?.[r]}return e?.[r]}function Hf(e){return typeof e=="function"?e():e}function _d(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,events:u,elements:c}=e,{enabled:f=!0,delay:h=0,handleClose:p=null,mouseOnly:b=!1,restMs:g=0,move:v=!0}=r,x=cu(),w=dh(),S=Tl(p),N=Tl(h),E=Tl(l),C=Tl(g),j=T.useRef(),B=T.useRef(-1),q=T.useRef(),L=T.useRef(-1),I=T.useRef(!0),$=T.useRef(!1),G=T.useRef(()=>{}),M=T.useRef(!1),V=an(()=>{var O;const z=(O=s.current.openEvent)==null?void 0:O.type;return z?.includes("mouse")&&z!=="mousedown"});T.useEffect(()=>{if(!f)return;function O(z){let{open:Q}=z;Q||(Zt(B),Zt(L),I.current=!0,M.current=!1)}return u.on("openchange",O),()=>{u.off("openchange",O)}},[f,u]),T.useEffect(()=>{if(!f||!S.current||!l)return;function O(Q){V()&&a(!1,Q,"hover")}const z=Pt(c.floating).documentElement;return z.addEventListener("mouseleave",O),()=>{z.removeEventListener("mouseleave",O)}},[c.floating,l,a,f,S,V]);const Y=T.useCallback(function(O,z,Q){z===void 0&&(z=!0),Q===void 0&&(Q="hover");const _=Uf(N.current,"close",j.current);_&&!q.current?(Zt(B),B.current=window.setTimeout(()=>a(!1,O,Q),_)):z&&(Zt(B),a(!1,O,Q))},[N,a]),J=an(()=>{G.current(),q.current=void 0}),U=an(()=>{if($.current){const O=Pt(c.floating).body;O.style.pointerEvents="",O.removeAttribute(ty),$.current=!1}}),X=an(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);T.useEffect(()=>{if(!f)return;function O(H){if(Zt(B),I.current=!1,b&&!$a(j.current)||Hf(C.current)>0&&!Uf(N.current,"open"))return;const A=Uf(N.current,"open",j.current);A?B.current=window.setTimeout(()=>{E.current||a(!0,H,"hover")},A):l||a(!0,H,"hover")}function z(H){if(X()){U();return}G.current();const A=Pt(c.floating);if(Zt(L),M.current=!1,S.current&&s.current.floatingContext){l||Zt(B),q.current=S.current({...s.current.floatingContext,tree:x,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H,!0,"safe-polygon")}});const fe=q.current;A.addEventListener("mousemove",fe),G.current=()=>{A.removeEventListener("mousemove",fe)};return}(j.current!=="touch"||!qt(c.floating,H.relatedTarget))&&Y(H)}function Q(H){X()||s.current.floatingContext&&(S.current==null||S.current({...s.current.floatingContext,tree:x,x:H.clientX,y:H.clientY,onClose(){U(),J(),X()||Y(H)}})(H))}function _(){Zt(B)}function D(H){X()||Y(H,!1)}if(ct(c.domReference)){const H=c.domReference,A=c.floating;return l&&H.addEventListener("mouseleave",Q),v&&H.addEventListener("mousemove",O,{once:!0}),H.addEventListener("mouseenter",O),H.addEventListener("mouseleave",z),A&&(A.addEventListener("mouseleave",Q),A.addEventListener("mouseenter",_),A.addEventListener("mouseleave",D)),()=>{l&&H.removeEventListener("mouseleave",Q),v&&H.removeEventListener("mousemove",O),H.removeEventListener("mouseenter",O),H.removeEventListener("mouseleave",z),A&&(A.removeEventListener("mouseleave",Q),A.removeEventListener("mouseenter",_),A.removeEventListener("mouseleave",D))}}},[c,f,e,b,v,Y,J,U,a,l,E,x,N,S,s,X,C]),on(()=>{var O;if(f&&l&&(O=S.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&V()){$.current=!0;const Q=c.floating;if(ct(c.domReference)&&Q){var z;const _=Pt(c.floating).body;_.setAttribute(ty,"");const D=c.domReference,H=x==null||(z=x.nodesRef.current.find(A=>A.id===w))==null||(z=z.context)==null?void 0:z.elements.floating;return H&&(H.style.pointerEvents=""),_.style.pointerEvents="none",D.style.pointerEvents="auto",Q.style.pointerEvents="auto",()=>{_.style.pointerEvents="",D.style.pointerEvents="",Q.style.pointerEvents=""}}}},[f,l,w,c,x,S,V]),on(()=>{l||(j.current=void 0,M.current=!1,J(),U())},[l,J,U]),T.useEffect(()=>()=>{J(),Zt(B),Zt(L),U()},[f,c.domReference,J,U]);const F=T.useMemo(()=>{function O(z){j.current=z.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(z){const{nativeEvent:Q}=z;function _(){!I.current&&!E.current&&a(!0,Q,"hover")}b&&!$a(j.current)||l||Hf(C.current)===0||M.current&&z.movementX**2+z.movementY**2<2||(Zt(L),j.current==="touch"?_():(M.current=!0,L.current=window.setTimeout(_,Hf(C.current))))}}},[b,a,l,E,C]);return T.useMemo(()=>f?{reference:F}:{},[f,F])}let ny=0;function wi(e,r){r===void 0&&(r={});const{preventScroll:l=!1,cancelPrevious:a=!0,sync:s=!1}=r;a&&cancelAnimationFrame(ny);const u=()=>e?.focus({preventScroll:l});s?u():ny=requestAnimationFrame(u)}function qf(e,r){if(!e||!r)return!1;const l=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(l&&Ls(l)){let a=r;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function jE(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _E(e){return e?.ownerDocument||document}const ji={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function ry(e){return e==="inert"?ji.inert:e==="aria-hidden"?ji["aria-hidden"]:ji.none}let vs=new WeakSet,ws={},Pf=0;const RE=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,E1=e=>e&&(e.host||E1(e.parentNode)),LE=(e,r)=>r.map(l=>{if(e.contains(l))return l;const a=E1(l);return e.contains(a)?a:null}).filter(l=>l!=null);function DE(e,r,l,a){const s="data-floating-ui-inert",u=a?"inert":l?"aria-hidden":null,c=LE(r,e),f=new Set,h=new Set(c),p=[];ws[s]||(ws[s]=new WeakMap);const b=ws[s];c.forEach(g),v(r),f.clear();function g(x){!x||f.has(x)||(f.add(x),x.parentNode&&g(x.parentNode))}function v(x){!x||h.has(x)||[].forEach.call(x.children,w=>{if(ll(w)!=="script")if(f.has(w))v(w);else{const S=u?w.getAttribute(u):null,N=S!==null&&S!=="false",E=ry(u),C=(E.get(w)||0)+1,j=(b.get(w)||0)+1;E.set(w,C),b.set(w,j),p.push(w),C===1&&N&&vs.add(w),j===1&&w.setAttribute(s,""),!N&&u&&w.setAttribute(u,u==="inert"?"":"true")}})}return Pf++,()=>{p.forEach(x=>{const w=ry(u),N=(w.get(x)||0)-1,E=(b.get(x)||0)-1;w.set(x,N),b.set(x,E),N||(!vs.has(x)&&u&&x.removeAttribute(u),vs.delete(x)),E||x.removeAttribute(s)}),Pf--,Pf||(ji.inert=new WeakMap,ji["aria-hidden"]=new WeakMap,ji.none=new WeakMap,vs=new WeakSet,ws={})}}function ly(e,r,l){r===void 0&&(r=!1),l===void 0&&(l=!1);const a=_E(e[0]).body;return DE(e.concat(Array.from(a.querySelectorAll('[aria-live],[role="status"],output'))),a,r,l)}const fu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},qs=T.forwardRef(function(r,l){const[a,s]=T.useState();on(()=>{c1()&&s("button")},[]);const u={ref:l,tabIndex:0,role:a,"aria-hidden":a?void 0:!0,[Ll("focus-guard")]:"",style:fu};return y.jsx("span",{...r,...u})}),C1=T.createContext(null),iy=Ll("portal");function OE(e){e===void 0&&(e={});const{id:r,root:l}=e,a=fh(),s=N1(),[u,c]=T.useState(null),f=T.useRef(null);return on(()=>()=>{u?.remove(),queueMicrotask(()=>{f.current=null})},[u]),on(()=>{if(!a||f.current)return;const h=r?document.getElementById(r):null;if(!h)return;const p=document.createElement("div");p.id=a,p.setAttribute(iy,""),h.appendChild(p),f.current=p,c(p)},[r,a]),on(()=>{if(l===null||!a||f.current)return;let h=l||s?.portalNode;h&&!oh(h)&&(h=h.current),h=h||document.body;let p=null;r&&(p=document.createElement("div"),p.id=r,h.appendChild(p));const b=document.createElement("div");b.id=a,b.setAttribute(iy,""),h=p||h,h.appendChild(b),f.current=b,c(b)},[r,l,a,s]),u}function Rd(e){const{children:r,id:l,root:a,preserveTabOrder:s=!0}=e,u=OE({id:l,root:a}),[c,f]=T.useState(null),h=T.useRef(null),p=T.useRef(null),b=T.useRef(null),g=T.useRef(null),v=c?.modal,x=c?.open,w=!!c&&!c.modal&&c.open&&s&&!!(a||u);return T.useEffect(()=>{if(!u||!s||v)return;function S(N){u&&Ba(N)&&(N.type==="focusin"?Vb:Vk)(u)}return u.addEventListener("focusin",S,!0),u.addEventListener("focusout",S,!0),()=>{u.removeEventListener("focusin",S,!0),u.removeEventListener("focusout",S,!0)}},[u,s,v]),T.useEffect(()=>{u&&(x||Vb(u))},[x,u]),y.jsxs(C1.Provider,{value:T.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:h,afterOutsideRef:p,beforeInsideRef:b,afterInsideRef:g,portalNode:u,setFocusManagerState:f}),[s,u]),children:[w&&u&&y.jsx(qs,{"data-type":"outside",ref:h,onFocus:S=>{if(Ba(S,u)){var N;(N=b.current)==null||N.focus()}else{const E=c?c.domReference:null,C=p1(E);C?.focus()}}}),w&&u&&y.jsx("span",{"aria-owns":u.id,style:fu}),u&&m1.createPortal(r,u),w&&u&&y.jsx(qs,{"data-type":"outside",ref:p,onFocus:S=>{if(Ba(S,u)){var N;(N=g.current)==null||N.focus()}else{const E=c?c.domReference:null,C=h1(E);C?.focus(),c?.closeOnFocusOut&&c?.onOpenChange(!1,S.nativeEvent,"focus-out")}}})]})}const N1=()=>T.useContext(C1);function ay(e){return T.useMemo(()=>r=>{e.forEach(l=>{l&&(l.current=r)})},e)}const ME=20;let tl=[];function hh(){tl=tl.filter(e=>e.isConnected)}function zE(e){hh(),e&&ll(e)!=="body"&&(tl.push(e),tl.length>ME&&(tl=tl.slice(-20)))}function oy(){return hh(),tl[tl.length-1]}function BE(e){const r=Ka();return o1(e,r)?e:su(e,r)[0]||e}function sy(e,r){var l;if(!r.current.includes("floating")&&!((l=e.getAttribute("role"))!=null&&l.includes("dialog")))return;const a=Ka(),u=Lk(e,a).filter(f=>{const h=f.getAttribute("data-tabindex")||"";return o1(f,a)||f.hasAttribute("data-tabindex")&&!h.startsWith("-")}),c=e.getAttribute("tabindex");r.current.includes("floating")||u.length===0?c!=="0"&&e.setAttribute("tabindex","0"):(c!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const FE=T.forwardRef(function(r,l){return y.jsx("button",{...r,type:"button",ref:l,tabIndex:-1,style:fu})});function IE(e){const{context:r,children:l,disabled:a=!1,order:s=["content"],guards:u=!0,initialFocus:c=0,returnFocus:f=!0,restoreFocus:h=!1,modal:p=!0,visuallyHiddenDismiss:b=!1,closeOnFocusOut:g=!0,outsideElementsInert:v=!1,getInsideElements:x=()=>[]}=e,{open:w,onOpenChange:S,events:N,dataRef:E,elements:{domReference:C,floating:j}}=r,B=an(()=>{var ye;return(ye=E.current.floatingContext)==null?void 0:ye.nodeId}),q=an(x),L=typeof c=="number"&&c<0,I=Pb(C)&&L,$=RE(),G=$?u:!0,M=!G||$&&v,V=Tl(s),Y=Tl(c),J=Tl(f),U=cu(),X=N1(),F=T.useRef(null),O=T.useRef(null),z=T.useRef(!1),Q=T.useRef(!1),_=T.useRef(-1),D=T.useRef(-1),H=X!=null,A=Cd(j),re=an(function(ye){return ye===void 0&&(ye=A),ye?su(ye,Ka()):[]}),fe=an(ye=>{const ke=re(ye);return V.current.map(Ce=>C&&Ce==="reference"?C:A&&Ce==="floating"?A:ke).filter(Boolean).flat()});T.useEffect(()=>{if(a||!p)return;function ye(Ce){if(Ce.key==="Tab"){qt(A,Wr(Pt(A)))&&re().length===0&&!I&&Bf(Ce);const ze=fe(),We=yr(Ce);V.current[0]==="reference"&&We===C&&(Bf(Ce),Ce.shiftKey?wi(ze[ze.length-1]):wi(ze[1])),V.current[1]==="floating"&&We===A&&Ce.shiftKey&&(Bf(Ce),wi(ze[0]))}}const ke=Pt(A);return ke.addEventListener("keydown",ye),()=>{ke.removeEventListener("keydown",ye)}},[a,C,A,p,V,I,re,fe]),T.useEffect(()=>{if(a||!j)return;function ye(ke){const Ce=yr(ke),We=re().indexOf(Ce);We!==-1&&(_.current=We)}return j.addEventListener("focusin",ye),()=>{j.removeEventListener("focusin",ye)}},[a,j,re]),T.useEffect(()=>{if(a||!g)return;function ye(){Q.current=!0,setTimeout(()=>{Q.current=!1})}function ke(We){const qe=We.relatedTarget,_t=We.currentTarget,bt=yr(We);queueMicrotask(()=>{const pt=B(),et=!(qt(C,qe)||qt(j,qe)||qt(qe,j)||qt(X?.portalNode,qe)||qe!=null&&qe.hasAttribute(Ll("focus-guard"))||U&&(Ai(U.nodesRef.current,pt).find(Gt=>{var Ft,tt;return qt((Ft=Gt.context)==null?void 0:Ft.elements.floating,qe)||qt((tt=Gt.context)==null?void 0:tt.elements.domReference,qe)})||$b(U.nodesRef.current,pt).find(Gt=>{var Ft,tt,kr;return[(Ft=Gt.context)==null?void 0:Ft.elements.floating,Cd((tt=Gt.context)==null?void 0:tt.elements.floating)].includes(qe)||((kr=Gt.context)==null?void 0:kr.elements.domReference)===qe})));if(_t===C&&A&&sy(A,V),h&&_t!==C&&!(bt!=null&&bt.isConnected)&&Wr(Pt(A))===Pt(A).body){Nt(A)&&A.focus();const Gt=_.current,Ft=re(),tt=Ft[Gt]||Ft[Ft.length-1]||A;Nt(tt)&&tt.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(I||!p)&&qe&&et&&!Q.current&&qe!==oy()&&(z.current=!0,S(!1,We,"focus-out"))})}const Ce=!!(!U&&X);function ze(){Zt(D),E.current.insideReactTree=!0,D.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(j&&Nt(C))return C.addEventListener("focusout",ke),C.addEventListener("pointerdown",ye),j.addEventListener("focusout",ke),Ce&&j.addEventListener("focusout",ze,!0),()=>{C.removeEventListener("focusout",ke),C.removeEventListener("pointerdown",ye),j.removeEventListener("focusout",ke),Ce&&j.removeEventListener("focusout",ze,!0)}},[a,C,j,A,p,U,X,S,g,h,re,I,B,V,E]);const de=T.useRef(null),he=T.useRef(null),ge=ay([de,X?.beforeInsideRef]),ue=ay([he,X?.afterInsideRef]);T.useEffect(()=>{var ye,ke;if(a||!j)return;const Ce=Array.from((X==null||(ye=X.portalNode)==null?void 0:ye.querySelectorAll("["+Ll("portal")+"]"))||[]),We=(ke=(U?$b(U.nodesRef.current,B()):[]).find(bt=>{var pt;return Pb(((pt=bt.context)==null?void 0:pt.elements.domReference)||null)}))==null||(ke=ke.context)==null?void 0:ke.elements.domReference,qe=[j,We,...Ce,...q(),F.current,O.current,de.current,he.current,X?.beforeOutsideRef.current,X?.afterOutsideRef.current,V.current.includes("reference")||I?C:null].filter(bt=>bt!=null),_t=p||I?ly(qe,!M,M):ly(qe);return()=>{_t()}},[a,C,j,p,V,X,I,G,M,U,B,q]),on(()=>{if(a||!Nt(A))return;const ye=Pt(A),ke=Wr(ye);queueMicrotask(()=>{const Ce=fe(A),ze=Y.current,We=(typeof ze=="number"?Ce[ze]:ze.current)||A,qe=qt(A,ke);!L&&!qe&&w&&wi(We,{preventScroll:We===A})})},[a,w,A,L,fe,Y]),on(()=>{if(a||!A)return;const ye=Pt(A),ke=Wr(ye);zE(ke);function Ce(qe){let{reason:_t,event:bt,nested:pt}=qe;if(["hover","safe-polygon"].includes(_t)&&bt.type==="mouseleave"&&(z.current=!0),_t==="outside-press")if(pt)z.current=!1;else if(Fk(bt)||Ik(bt))z.current=!1;else{let et=!1;document.createElement("div").focus({get preventScroll(){return et=!0,!1}}),et?z.current=!1:z.current=!0}}N.on("openchange",Ce);const ze=ye.createElement("span");ze.setAttribute("tabindex","-1"),ze.setAttribute("aria-hidden","true"),Object.assign(ze.style,fu),H&&C&&C.insertAdjacentElement("afterend",ze);function We(){if(typeof J.current=="boolean"){const qe=C||oy();return qe&&qe.isConnected?qe:ze}return J.current.current||ze}return()=>{N.off("openchange",Ce);const qe=Wr(ye),_t=qt(j,qe)||U&&Ai(U.nodesRef.current,B(),!1).some(pt=>{var et;return qt((et=pt.context)==null?void 0:et.elements.floating,qe)}),bt=We();queueMicrotask(()=>{const pt=BE(bt);J.current&&!z.current&&Nt(pt)&&(!(pt!==qe&&qe!==ye.body)||_t)&&pt.focus({preventScroll:!0}),ze.remove()})}},[a,j,A,J,E,N,U,H,C,B]),T.useEffect(()=>(queueMicrotask(()=>{z.current=!1}),()=>{queueMicrotask(hh)}),[a]),on(()=>{if(!a&&X)return X.setFocusManagerState({modal:p,closeOnFocusOut:g,open:w,onOpenChange:S,domReference:C}),()=>{X.setFocusManagerState(null)}},[a,X,p,w,S,g,C]),on(()=>{a||A&&sy(A,V)},[a,A,V]);function xe(ye){return a||!b||!p?null:y.jsx(FE,{ref:ye==="start"?F:O,onClick:ke=>S(!1,ke.nativeEvent),children:typeof b=="string"?b:"Dismiss"})}const be=!a&&G&&(p?!I:!0)&&(H||p);return y.jsxs(y.Fragment,{children:[be&&y.jsx(qs,{"data-type":"inside",ref:ge,onFocus:ye=>{if(p){const Ce=fe();wi(s[0]==="reference"?Ce[0]:Ce[Ce.length-1])}else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(z.current=!1,Ba(ye,X.portalNode)){const Ce=h1(C);Ce?.focus()}else{var ke;(ke=X.beforeOutsideRef.current)==null||ke.focus()}}}),!I&&xe("start"),l,xe("end"),be&&y.jsx(qs,{"data-type":"inside",ref:ue,onFocus:ye=>{if(p)wi(fe()[0]);else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(g&&(z.current=!0),Ba(ye,X.portalNode)){const Ce=p1(C);Ce?.focus()}else{var ke;(ke=X.afterOutsideRef.current)==null||ke.focus()}}})]})}function uy(e){return Nt(e.target)&&e.target.tagName==="BUTTON"}function UE(e){return Nt(e.target)&&e.target.tagName==="A"}function cy(e){return uh(e)}function Ld(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,dataRef:s,elements:{domReference:u}}=e,{enabled:c=!0,event:f="click",toggle:h=!0,ignoreMouse:p=!1,keyboardHandlers:b=!0,stickIfOpen:g=!0}=r,v=T.useRef(),x=T.useRef(!1),w=T.useMemo(()=>({onPointerDown(S){v.current=S.pointerType},onMouseDown(S){const N=v.current;S.button===0&&f!=="click"&&($a(N,!0)&&p||(l&&h&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="mousedown")?a(!1,S.nativeEvent,"click"):(S.preventDefault(),a(!0,S.nativeEvent,"click"))))},onClick(S){const N=v.current;if(f==="mousedown"&&v.current){v.current=void 0;return}$a(N,!0)&&p||(l&&h&&(!(s.current.openEvent&&g)||s.current.openEvent.type==="click")?a(!1,S.nativeEvent,"click"):a(!0,S.nativeEvent,"click"))},onKeyDown(S){v.current=void 0,!(S.defaultPrevented||!b||uy(S))&&(S.key===" "&&!cy(u)&&(S.preventDefault(),x.current=!0),!UE(S)&&S.key==="Enter"&&a(!(l&&h),S.nativeEvent,"click"))},onKeyUp(S){S.defaultPrevented||!b||uy(S)||cy(u)||S.key===" "&&x.current&&(x.current=!1,a(!(l&&h),S.nativeEvent,"click"))}}),[s,u,f,p,b,a,l,g,h]);return T.useMemo(()=>c?{reference:w}:{},[c,w])}const HE={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qE={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},fy=e=>{var r,l;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(l=e?.outsidePress)!=null?l:!0}};function Dd(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,elements:s,dataRef:u}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:h=!0,outsidePressEvent:p="pointerdown",referencePress:b=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:x,capture:w}=r,S=cu(),N=an(typeof h=="function"?h:()=>!1),E=typeof h=="function"?N:h,C=T.useRef(!1),{escapeKey:j,outsidePress:B}=fy(x),{escapeKey:q,outsidePress:L}=fy(w),I=T.useRef(!1),$=an(U=>{var X;if(!l||!c||!f||U.key!=="Escape"||I.current)return;const F=(X=u.current.floatingContext)==null?void 0:X.nodeId,O=S?Ai(S.nodesRef.current,F):[];if(!j&&(U.stopPropagation(),O.length>0)){let z=!0;if(O.forEach(Q=>{var _;if((_=Q.context)!=null&&_.open&&!Q.context.dataRef.current.__escapeKeyBubbles){z=!1;return}}),!z)return}a(!1,Bk(U)?U.nativeEvent:U,"escape-key")}),G=an(U=>{var X;const F=()=>{var O;$(U),(O=yr(U))==null||O.removeEventListener("keydown",F)};(X=yr(U))==null||X.addEventListener("keydown",F)}),M=an(U=>{var X;const F=u.current.insideReactTree;u.current.insideReactTree=!1;const O=C.current;if(C.current=!1,p==="click"&&O||F||typeof E=="function"&&!E(U))return;const z=yr(U),Q="["+Ll("inert")+"]",_=Pt(s.floating).querySelectorAll(Q);let D=ct(z)?z:null;for(;D&&!vr(D);){const fe=wr(D);if(vr(fe)||!ct(fe))break;D=fe}if(_.length&&ct(z)&&!Mk(z)&&!qt(z,s.floating)&&Array.from(_).every(fe=>!qt(D,fe)))return;if(Nt(z)&&J){const fe=vr(z),de=Bn(z),he=/auto|scroll/,ge=fe||he.test(de.overflowX),ue=fe||he.test(de.overflowY),xe=ge&&z.clientWidth>0&&z.scrollWidth>z.clientWidth,be=ue&&z.clientHeight>0&&z.scrollHeight>z.clientHeight,ye=de.direction==="rtl",ke=be&&(ye?U.offsetX<=z.offsetWidth-z.clientWidth:U.offsetX>z.clientWidth),Ce=xe&&U.offsetY>z.clientHeight;if(ke||Ce)return}const H=(X=u.current.floatingContext)==null?void 0:X.nodeId,A=S&&Ai(S.nodesRef.current,H).some(fe=>{var de;return zf(U,(de=fe.context)==null?void 0:de.elements.floating)});if(zf(U,s.floating)||zf(U,s.domReference)||A)return;const re=S?Ai(S.nodesRef.current,H):[];if(re.length>0){let fe=!0;if(re.forEach(de=>{var he;if((he=de.context)!=null&&he.open&&!de.context.dataRef.current.__outsidePressBubbles){fe=!1;return}}),!fe)return}a(!1,U,"outside-press")}),V=an(U=>{var X;const F=()=>{var O;M(U),(O=yr(U))==null||O.removeEventListener(p,F)};(X=yr(U))==null||X.addEventListener(p,F)});T.useEffect(()=>{if(!l||!c)return;u.current.__escapeKeyBubbles=j,u.current.__outsidePressBubbles=B;let U=-1;function X(_){a(!1,_,"ancestor-scroll")}function F(){window.clearTimeout(U),I.current=!0}function O(){U=window.setTimeout(()=>{I.current=!1},lu()?5:0)}const z=Pt(s.floating);f&&(z.addEventListener("keydown",q?G:$,q),z.addEventListener("compositionstart",F),z.addEventListener("compositionend",O)),E&&z.addEventListener(p,L?V:M,L);let Q=[];return v&&(ct(s.domReference)&&(Q=rl(s.domReference)),ct(s.floating)&&(Q=Q.concat(rl(s.floating))),!ct(s.reference)&&s.reference&&s.reference.contextElement&&(Q=Q.concat(rl(s.reference.contextElement)))),Q=Q.filter(_=>{var D;return _!==((D=z.defaultView)==null?void 0:D.visualViewport)}),Q.forEach(_=>{_.addEventListener("scroll",X,{passive:!0})}),()=>{f&&(z.removeEventListener("keydown",q?G:$,q),z.removeEventListener("compositionstart",F),z.removeEventListener("compositionend",O)),E&&z.removeEventListener(p,L?V:M,L),Q.forEach(_=>{_.removeEventListener("scroll",X)}),window.clearTimeout(U)}},[u,s,f,E,p,l,a,v,c,j,B,$,q,G,M,L,V]),T.useEffect(()=>{u.current.insideReactTree=!1},[u,E,p]);const Y=T.useMemo(()=>({onKeyDown:$,...b&&{[HE[g]]:U=>{a(!1,U.nativeEvent,"reference-press")},...g!=="click"&&{onClick(U){a(!1,U.nativeEvent,"reference-press")}}}}),[$,a,b,g]),J=T.useMemo(()=>({onKeyDown:$,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[qE[p]]:()=>{u.current.insideReactTree=!0}}),[$,p,u]);return T.useMemo(()=>c?{reference:Y,floating:J}:{},[c,Y,J])}function PE(e){const{open:r=!1,onOpenChange:l,elements:a}=e,s=fh(),u=T.useRef({}),[c]=T.useState(()=>NE()),f=dh()!=null,[h,p]=T.useState(a.reference),b=an((x,w,S)=>{u.current.openEvent=x?w:void 0,c.emit("openchange",{open:x,event:w,reason:S,nested:f}),l?.(x,w,S)}),g=T.useMemo(()=>({setPositionReference:p}),[]),v=T.useMemo(()=>({reference:h||a.reference||null,floating:a.floating||null,domReference:a.reference}),[h,a.reference,a.floating]);return T.useMemo(()=>({dataRef:u,open:r,onOpenChange:b,elements:v,events:c,floatingId:s,refs:g}),[r,b,v,c,s,g])}function Od(e){e===void 0&&(e={});const{nodeId:r}=e,l=PE({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||l,s=a.elements,[u,c]=T.useState(null),[f,h]=T.useState(null),b=s?.domReference||u,g=T.useRef(null),v=cu();on(()=>{b&&(g.current=b)},[b]);const x=vE({...e,elements:{...s,...f&&{reference:f}}}),w=T.useCallback(j=>{const B=ct(j)?{getBoundingClientRect:()=>j.getBoundingClientRect(),getClientRects:()=>j.getClientRects(),contextElement:j}:j;h(B),x.refs.setReference(B)},[x.refs]),S=T.useCallback(j=>{(ct(j)||j===null)&&(g.current=j,c(j)),(ct(x.refs.reference.current)||x.refs.reference.current===null||j!==null&&!ct(j))&&x.refs.setReference(j)},[x.refs]),N=T.useMemo(()=>({...x.refs,setReference:S,setPositionReference:w,domReference:g}),[x.refs,S,w]),E=T.useMemo(()=>({...x.elements,domReference:b}),[x.elements,b]),C=T.useMemo(()=>({...x,...a,refs:N,elements:E,nodeId:r}),[x,N,E,r,a]);return on(()=>{a.dataRef.current.floatingContext=C;const j=v?.nodesRef.current.find(B=>B.id===r);j&&(j.context=C)}),T.useMemo(()=>({...x,context:C,refs:N,elements:E}),[x,N,E,C])}function $f(){return Dk()&&c1()}function $E(e,r){r===void 0&&(r={});const{open:l,onOpenChange:a,events:s,dataRef:u,elements:c}=e,{enabled:f=!0,visibleOnly:h=!0}=r,p=T.useRef(!1),b=T.useRef(-1),g=T.useRef(!0);T.useEffect(()=>{if(!f)return;const x=sn(c.domReference);function w(){!l&&Nt(c.domReference)&&c.domReference===Wr(Pt(c.domReference))&&(p.current=!0)}function S(){g.current=!0}function N(){g.current=!1}return x.addEventListener("blur",w),$f()&&(x.addEventListener("keydown",S,!0),x.addEventListener("pointerdown",N,!0)),()=>{x.removeEventListener("blur",w),$f()&&(x.removeEventListener("keydown",S,!0),x.removeEventListener("pointerdown",N,!0))}},[c.domReference,l,f]),T.useEffect(()=>{if(!f)return;function x(w){let{reason:S}=w;(S==="reference-press"||S==="escape-key")&&(p.current=!0)}return s.on("openchange",x),()=>{s.off("openchange",x)}},[s,f]),T.useEffect(()=>()=>{Zt(b)},[]);const v=T.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(x){if(p.current)return;const w=yr(x.nativeEvent);if(h&&ct(w)){if($f()&&!x.relatedTarget){if(!g.current&&!uh(w))return}else if(!zk(w))return}a(!0,x.nativeEvent,"focus")},onBlur(x){p.current=!1;const w=x.relatedTarget,S=x.nativeEvent,N=ct(w)&&w.hasAttribute(Ll("focus-guard"))&&w.getAttribute("data-type")==="outside";b.current=window.setTimeout(()=>{var E;const C=Wr(c.domReference?c.domReference.ownerDocument:document);!w&&C===c.domReference||qt((E=u.current.floatingContext)==null?void 0:E.refs.floating.current,C)||qt(c.domReference,C)||N||a(!1,S,"focus")})}}),[u,c.domReference,a,h]);return T.useMemo(()=>f?{reference:v}:{},[f,v])}function Vf(e,r,l){const a=new Map,s=l==="item";let u=e;if(s&&e){const{[Kb]:c,[Jb]:f,...h}=e;u=h}return{...l==="floating"&&{tabIndex:-1,[wE]:""},...u,...r.map(c=>{const f=c?c[l]:null;return typeof f=="function"?e?f(e):null:f}).concat(e).reduce((c,f)=>(f&&Object.entries(f).forEach(h=>{let[p,b]=h;if(!(s&&[Kb,Jb].includes(p)))if(p.indexOf("on")===0){if(a.has(p)||a.set(p,[]),typeof b=="function"){var g;(g=a.get(p))==null||g.push(b),c[p]=function(){for(var v,x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];return(v=a.get(p))==null?void 0:v.map(N=>N(...w)).find(N=>N!==void 0)}}}else c[p]=b}),c),{})}}function Md(e){e===void 0&&(e=[]);const r=e.map(f=>f?.reference),l=e.map(f=>f?.floating),a=e.map(f=>f?.item),s=T.useCallback(f=>Vf(f,e,"reference"),r),u=T.useCallback(f=>Vf(f,e,"floating"),l),c=T.useCallback(f=>Vf(f,e,"item"),a);return T.useMemo(()=>({getReferenceProps:s,getFloatingProps:u,getItemProps:c}),[s,u,c])}const VE=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function zd(e,r){var l,a;r===void 0&&(r={});const{open:s,elements:u,floatingId:c}=e,{enabled:f=!0,role:h="dialog"}=r,p=fh(),b=((l=u.domReference)==null?void 0:l.id)||p,g=T.useMemo(()=>{var C;return((C=Cd(u.floating))==null?void 0:C.id)||c},[u.floating,c]),v=(a=VE.get(h))!=null?a:h,w=dh()!=null,S=T.useMemo(()=>v==="tooltip"||h==="label"?{["aria-"+(h==="label"?"labelledby":"describedby")]:s?g:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":v==="alertdialog"?"dialog":v,"aria-controls":s?g:void 0,...v==="listbox"&&{role:"combobox"},...v==="menu"&&{id:b},...v==="menu"&&w&&{role:"menuitem"},...h==="select"&&{"aria-autocomplete":"none"},...h==="combobox"&&{"aria-autocomplete":"list"}},[v,g,w,s,b,h]),N=T.useMemo(()=>{const C={id:g,...v&&{role:v}};return v==="tooltip"||h==="label"?C:{...C,...v==="menu"&&{"aria-labelledby":b}}},[v,g,b,h]),E=T.useCallback(C=>{let{active:j,selected:B}=C;const q={role:"option",...j&&{id:g+"-fui-option"}};switch(h){case"select":case"combobox":return{...q,"aria-selected":B}}return{}},[g,h]);return T.useMemo(()=>f?{reference:S,floating:N,item:E}:{},[f,S,N,E])}function A1(e,r,l){return l===void 0&&(l=!0),e.filter(s=>{var u;return s.parentId===r&&(!l||((u=s.context)==null?void 0:u.open))}).flatMap(s=>[s,...A1(e,s.id,l)])}function dy(e,r){const[l,a]=e;let s=!1;const u=r.length;for(let c=0,f=u-1;c<u;f=c++){const[h,p]=r[c]||[0,0],[b,g]=r[f]||[0,0];p>=a!=g>=a&&l<=(b-h)*(a-p)/(g-p)+h&&(s=!s)}return s}function GE(e,r){return e[0]>=r.x&&e[0]<=r.x+r.width&&e[1]>=r.y&&e[1]<=r.y+r.height}function Bd(e){e===void 0&&(e={});const{buffer:r=.5,blockPointerEvents:l=!1,requireIntent:a=!0}=e,s={current:-1};let u=!1,c=null,f=null,h=typeof performance<"u"?performance.now():0;function p(g,v){const x=performance.now(),w=x-h;if(c===null||f===null||w===0)return c=g,f=v,h=x,null;const S=g-c,N=v-f,C=Math.sqrt(S*S+N*N)/w;return c=g,f=v,h=x,C}const b=g=>{let{x:v,y:x,placement:w,elements:S,onClose:N,nodeId:E,tree:C}=g;return function(B){function q(){Zt(s),N()}if(Zt(s),!S.domReference||!S.floating||w==null||v==null||x==null)return;const{clientX:L,clientY:I}=B,$=[L,I],G=jE(B),M=B.type==="mouseleave",V=qf(S.floating,G),Y=qf(S.domReference,G),J=S.domReference.getBoundingClientRect(),U=S.floating.getBoundingClientRect(),X=w.split("-")[0],F=v>U.right-U.width/2,O=x>U.bottom-U.height/2,z=GE($,J),Q=U.width>J.width,_=U.height>J.height,D=(Q?J:U).left,H=(Q?J:U).right,A=(_?J:U).top,re=(_?J:U).bottom;if(V&&(u=!0,!M))return;if(Y&&(u=!1),Y&&!M){u=!0;return}if(M&&ct(B.relatedTarget)&&qf(S.floating,B.relatedTarget)||C&&A1(C.nodesRef.current,E).length)return;if(X==="top"&&x>=J.bottom-1||X==="bottom"&&x<=J.top+1||X==="left"&&v>=J.right-1||X==="right"&&v<=J.left+1)return q();let fe=[];switch(X){case"top":fe=[[D,J.top+1],[D,U.bottom-1],[H,U.bottom-1],[H,J.top+1]];break;case"bottom":fe=[[D,U.top+1],[D,J.bottom-1],[H,J.bottom-1],[H,U.top+1]];break;case"left":fe=[[U.right-1,re],[U.right-1,A],[J.left+1,A],[J.left+1,re]];break;case"right":fe=[[J.right-1,re],[J.right-1,A],[U.left+1,A],[U.left+1,re]];break}function de(he){let[ge,ue]=he;switch(X){case"top":{const xe=[Q?ge+r/2:F?ge+r*4:ge-r*4,ue+r+1],be=[Q?ge-r/2:F?ge+r*4:ge-r*4,ue+r+1],ye=[[U.left,F||Q?U.bottom-r:U.top],[U.right,F?Q?U.bottom-r:U.top:U.bottom-r]];return[xe,be,...ye]}case"bottom":{const xe=[Q?ge+r/2:F?ge+r*4:ge-r*4,ue-r],be=[Q?ge-r/2:F?ge+r*4:ge-r*4,ue-r],ye=[[U.left,F||Q?U.top+r:U.bottom],[U.right,F?Q?U.top+r:U.bottom:U.top+r]];return[xe,be,...ye]}case"left":{const xe=[ge+r+1,_?ue+r/2:O?ue+r*4:ue-r*4],be=[ge+r+1,_?ue-r/2:O?ue+r*4:ue-r*4];return[...[[O||_?U.right-r:U.left,U.top],[O?_?U.right-r:U.left:U.right-r,U.bottom]],xe,be]}case"right":{const xe=[ge-r,_?ue+r/2:O?ue+r*4:ue-r*4],be=[ge-r,_?ue-r/2:O?ue+r*4:ue-r*4],ye=[[O||_?U.left+r:U.right,U.top],[O?_?U.left+r:U.right:U.left+r,U.bottom]];return[xe,be,...ye]}}}if(!dy([L,I],fe)){if(u&&!z)return q();if(!M&&a){const he=p(B.clientX,B.clientY);if(he!==null&&he<.1)return q()}dy([L,I],de([v,x]))?!u&&a&&(s.current=window.setTimeout(q,40)):q()}}};return b.__options={blockPointerEvents:l},b}const YE={".":"Uncommitted Changes",staged:"Staging Area",working:"Working Directory"},hy=(e,r)=>r?`${e.shortHash}^`:e.shortHash,py=(e,r,l)=>{if(!r)return"Select...";const a=r.endsWith("^"),s=a?r.slice(0,-1):r;if(s.startsWith("HEAD"))return r;const u=YE[r];if(u)return u;const c=e.specialOptions.find(p=>p.value===r);if(c)return c.label;const f=e.branches.find(p=>p.name===s);if(f)return a?`${f.name}^`:f.name;const h=e.commits.find(p=>p.shortHash===s||p.hash===s);if(h)return hy(h,a);if(l){const p=e.commits.find(b=>b.shortHash===l||b.hash===l);if(p)return hy(p,!1)}return r};function XE({options:e,baseRevision:r,targetRevision:l,resolvedBaseRevision:a,resolvedTargetRevision:s,onSelectDiff:u,onOpenAdvanced:c,compact:f=!1}){const[h,p]=T.useState(!1),[b,g]=T.useState(!1),v=f,{refs:x,floatingStyles:w,context:S}=Od({open:h||b,onOpenChange:A=>{!A&&b||p(A)},placement:"bottom-end",middleware:[Ad(6),jd(),Td({padding:8})],whileElementsMounted:Nd}),N=_d(S,{handleClose:Bd()}),E=Ld(S),C=Dd(S),j=zd(S,{role:"menu"}),{getReferenceProps:B,getFloatingProps:q}=Md([N,E,C,j]),{refs:L,floatingStyles:I,context:$}=Od({open:b,onOpenChange:A=>{A&&p(!0),g(A)},placement:"left-start",middleware:[Ad(0),jd(),Td({padding:8})],whileElementsMounted:Nd}),G=_d($,{handleClose:Bd()}),M=Ld($),V=Dd($),Y=zd($,{role:"menu"}),{getReferenceProps:J,getFloatingProps:U}=Md([G,M,V,Y]);T.useEffect(()=>{h||g(!1)},[h]);const X=T.useMemo(()=>{const A=e.commits.find(de=>{const he=l===de.shortHash||l===de.hash,ge=r===`${de.shortHash}^`||r===`${de.hash}^`;return he&&ge});if(A)return`${A.shortHash} ${A.message}`;const re=py(e,r,a),fe=py(e,l,s);return`${re}...${fe}`},[e,r,l,a,s]),F=T.useMemo(()=>e.branches.find(A=>A.name==="main")||e.branches.find(A=>A.name==="master"),[e.branches]),O=!!F,z=(A,re)=>{u(A,re),g(!1),p(!1)},Q=()=>{g(!1),p(!1),c()},_=(A,re)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",A?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",A?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",re?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),D=(A,re)=>r===A&&l===re,H=A=>{const re=l===A.shortHash||l===A.hash,fe=r===`${A.shortHash}^`||r===`${A.hash}^`;return re&&fe};return y.jsxs("div",{className:"relative",children:[y.jsx("button",{ref:x.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"menu","aria-expanded":h,"aria-label":`Revision menu: ${X}`,title:X,...B(),children:v?y.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx(ES,{size:14,className:"text-github-text-secondary"}),y.jsx(Ri,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]}):y.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx("code",{className:"text-xs text-github-text-primary",children:X}),y.jsx(Ri,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})}),h&&y.jsx(Rd,{children:y.jsxs("div",{ref:x.setFloating,style:w,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[260px] max-h-[360px] overflow-y-auto",...q(),children:[y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Quick Diffs"}),y.jsx("button",{onClick:()=>z("HEAD","."),className:_(D("HEAD","."),!1),children:"HEAD...Uncommitted"}),y.jsx("button",{onClick:()=>z("HEAD","staged"),className:_(D("HEAD","staged"),!1),children:"HEAD...Staging"}),y.jsx("button",{onClick:()=>z("staged","working"),className:_(D("staged","working"),!1),children:"Staging...Working"}),O&&F&&y.jsxs(y.Fragment,{children:[y.jsxs("button",{onClick:()=>z(F.name,"."),className:_(D(F.name,"."),!1),children:[F.name,"...Uncommitted"]}),y.jsxs("button",{onClick:()=>z(F.name,"HEAD"),className:_(D(F.name,"HEAD"),!1),children:[F.name,"...HEAD"]})]})]}),y.jsx("div",{className:"border-b border-github-border",children:y.jsx("button",{ref:e.commits.length>0?L.setReference:void 0,className:_(!1,e.commits.length===0),...e.commits.length>0?J():{},disabled:e.commits.length===0,type:"button",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(tS,{size:12,className:"text-github-text-secondary"}),y.jsx("span",{children:"Pick Commit..."})]})})}),y.jsx("div",{children:y.jsx("button",{onClick:Q,className:_(!1,!1),type:"button",children:"Detailed..."})})]})}),b&&e.commits.length>0&&y.jsx(Rd,{children:y.jsxs("div",{ref:L.setFloating,style:I,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[360px] overflow-y-auto",...U(),children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),e.commits.map(A=>y.jsx("button",{onClick:()=>z(`${A.shortHash}^`,A.shortHash),className:_(H(A),!1),type:"button",children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:A.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:A.message})]})},A.hash))]})})]})}function Ja(e){return e&&e.split(".").pop()?.toLowerCase()||null}function ZE(e){return e&&e.split("/").pop()||""}const QE=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function KE(e){if(!e)return!1;const r=Ja(e);return r?QE.includes(r):!1}const JE=["md","markdown"];function WE(e){if(!e)return!1;const r=Ja(e);return r?JE.includes(r):!1}const eC=["ipynb"];function tC(e){if(!e)return!1;const r=Ja(e);return r?eC.includes(r):!1}function nC({file:e,diffMode:r,baseCommitish:l,targetCommitish:a}){const s=r??Za,u=e.status==="deleted",c=e.status==="added",f=e.status==="modified"||e.status==="renamed",h=l||"HEAD~1",p=a||"HEAD",[b,g]=T.useState({}),[v,x]=T.useState({}),w=async(C,j)=>{try{const B=C.naturalWidth,q=C.naturalHeight,$=(await(await fetch(C.src)).blob()).size;j({width:B,height:q,size:$})}catch(B){console.error("Failed to get image info:",B)}},S=C=>C?C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(1)} KB`:`${(C/(1024*1024)).toFixed(1)} MB`:"",N=C=>!C.width||!C.height?"":`W: ${C.width}px | H: ${C.height}px`,E={backgroundImage:`
|
|
13
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
14
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
15
|
+
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return u?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})]})}):c?y.jsx("div",{className:"bg-github-bg-primary p-4",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"mb-2",children:y.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),y.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`New image ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})]})}):f?s==="split"?y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})})]})]}):y.jsxs("div",{className:"bg-github-bg-primary p-4",children:[y.jsx("div",{className:"text-center mb-4",children:y.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),y.jsxs("div",{className:"space-y-6",children:[y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),y.jsx("img",{src:`/api/blob/${e.oldPath||e.path}?ref=${h}`,alt:`Previous version of ${e.oldPath||e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,g),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(b),N(b)&&S(b.size)&&" | ",S(b.size)]})]})}),y.jsx("div",{className:"text-center",children:y.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[y.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),y.jsx("img",{src:`/api/blob/${e.path}?ref=${p}`,alt:`Current version of ${e.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:E,onLoad:C=>w(C.currentTarget,x),onError:C=>{const j=C.target;j.style.display="none",j.nextElementSibling?.classList.remove("hidden")}}),y.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(v.width||v.size)&&y.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[N(v),N(v)&&S(v.size)&&" | ",S(v.size)]})]})})]})]}):null}function rC(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const lC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aC={};function my(e,r){return(aC.jsx?iC:lC).test(e)}const oC=/[ \t\n\f\r]/g;function sC(e){return typeof e=="object"?e.type==="text"?gy(e.value):!1:gy(e)}function gy(e){return e.replace(oC,"")===""}class Wa{constructor(r,l,a){this.normal=l,this.property=r,a&&(this.space=a)}}Wa.prototype.normal={};Wa.prototype.property={};Wa.prototype.space=void 0;function T1(e,r){const l={},a={};for(const s of e)Object.assign(l,s.property),Object.assign(a,s.normal);return new Wa(l,a,r)}function Fd(e){return e.toLowerCase()}class un{constructor(r,l){this.attribute=l,this.property=r}}un.prototype.attribute="";un.prototype.booleanish=!1;un.prototype.boolean=!1;un.prototype.commaOrSpaceSeparated=!1;un.prototype.commaSeparated=!1;un.prototype.defined=!1;un.prototype.mustUseProperty=!1;un.prototype.number=!1;un.prototype.overloadedBoolean=!1;un.prototype.property="";un.prototype.spaceSeparated=!1;un.prototype.space=void 0;let uC=0;const Oe=Ol(),Ct=Ol(),Id=Ol(),pe=Ol(),ut=Ol(),_i=Ol(),vn=Ol();function Ol(){return 2**++uC}const Ud=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Ct,commaOrSpaceSeparated:vn,commaSeparated:_i,number:pe,overloadedBoolean:Id,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),Gf=Object.keys(Ud);class ph extends un{constructor(r,l,a,s){let u=-1;if(super(r,l),by(this,"space",s),typeof a=="number")for(;++u<Gf.length;){const c=Gf[u];by(this,Gf[u],(a&Ud[c])===Ud[c])}}}ph.prototype.defined=!0;function by(e,r,l){l&&(e[r]=l)}function Mi(e){const r={},l={};for(const[a,s]of Object.entries(e.properties)){const u=new ph(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),r[a]=u,l[Fd(a)]=a,l[Fd(u.attribute)]=a}return new Wa(r,l,e.space)}const j1=Mi({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:ut,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:pe,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:ut,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ct,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function _1(e,r){return r in e?e[r]:r}function R1(e,r){return _1(e,r.toLowerCase())}const cC=Mi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_i,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:ut,autoFocus:Oe,autoPlay:Oe,blocking:ut,capture:null,charSet:null,checked:Oe,cite:null,className:ut,cols:pe,colSpan:null,content:null,contentEditable:Ct,controls:Oe,controlsList:ut,coords:pe|_i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Id,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:ut,height:pe,hidden:Id,high:pe,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:ut,itemRef:ut,itemScope:Oe,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:pe,pattern:null,ping:ut,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:ut,required:Oe,reversed:Oe,rows:pe,rowSpan:pe,sandbox:ut,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Ct,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:R1}),fC=Mi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:vn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_i,g2:_i,glyphName:_i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_1}),L1=Mi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),D1=Mi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R1}),O1=Mi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),dC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hC=/[A-Z]/g,yy=/-[a-z]/g,pC=/^data[-\w.:]+$/i;function mC(e,r){const l=Fd(r);let a=r,s=un;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&pC.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(yy,bC);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!yy.test(u)){let c=u.replace(hC,gC);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}s=ph}return new s(a,r)}function gC(e){return"-"+e.toLowerCase()}function bC(e){return e.charAt(1).toUpperCase()}const yC=T1([j1,cC,L1,D1,O1],"html"),mh=T1([j1,fC,L1,D1,O1],"svg");function xC(e){return e.join(" ").trim()}var Si={},Yf,xy;function vC(){if(xy)return Yf;xy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
16
|
+
`,p="/",b="*",g="",v="comment",x="declaration";function w(N,E){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];E=E||{};var C=1,j=1;function B(U){var X=U.match(r);X&&(C+=X.length);var F=U.lastIndexOf(h);j=~F?U.length-F:j+U.length}function q(){var U={line:C,column:j};return function(X){return X.position=new L(U),G(),X}}function L(U){this.start=U,this.end={line:C,column:j},this.source=E.source}L.prototype.content=N;function I(U){var X=new Error(E.source+":"+C+":"+j+": "+U);if(X.reason=U,X.filename=E.source,X.line=C,X.column=j,X.source=N,!E.silent)throw X}function $(U){var X=U.exec(N);if(X){var F=X[0];return B(F),N=N.slice(F.length),X}}function G(){$(l)}function M(U){var X;for(U=U||[];X=V();)X!==!1&&U.push(X);return U}function V(){var U=q();if(!(p!=N.charAt(0)||b!=N.charAt(1))){for(var X=2;g!=N.charAt(X)&&(b!=N.charAt(X)||p!=N.charAt(X+1));)++X;if(X+=2,g===N.charAt(X-1))return I("End of comment missing");var F=N.slice(2,X-2);return j+=2,B(F),N=N.slice(X),j+=2,U({type:v,comment:F})}}function Y(){var U=q(),X=$(a);if(X){if(V(),!$(s))return I("property missing ':'");var F=$(u),O=U({type:x,property:S(X[0].replace(e,g)),value:F?S(F[0].replace(e,g)):g});return $(c),O}}function J(){var U=[];M(U);for(var X;X=Y();)X!==!1&&(U.push(X),M(U));return U}return G(),J()}function S(N){return N?N.replace(f,g):g}return Yf=w,Yf}var vy;function wC(){if(vy)return Si;vy=1;var e=Si&&Si.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=l;const r=e(vC());function l(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,r.default)(a),f=typeof s=="function";return c.forEach(h=>{if(h.type!=="declaration")return;const{property:p,value:b}=h;f?s(p,b,h):b&&(u=u||{},u[p]=b)}),u}return Si}var _a={},wy;function SC(){if(wy)return _a;wy=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(p){return!p||l.test(p)||e.test(p)},c=function(p,b){return b.toUpperCase()},f=function(p,b){return"".concat(b,"-")},h=function(p,b){return b===void 0&&(b={}),u(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(s,f):p=p.replace(a,f),p.replace(r,c))};return _a.camelCase=h,_a}var Ra,Sy;function kC(){if(Sy)return Ra;Sy=1;var e=Ra&&Ra.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},r=e(wC()),l=SC();function a(s,u){var c={};return!s||typeof s!="string"||(0,r.default)(s,function(f,h){f&&h&&(c[(0,l.camelCase)(f,u)]=h)}),c}return a.default=a,Ra=a,Ra}var EC=kC();const CC=Ws(EC),M1=z1("end"),gh=z1("start");function z1(e){return r;function r(l){const a=l&&l.position&&l.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function NC(e){const r=gh(e),l=M1(e);if(r&&l)return{start:r,end:l}}function Fa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ky(e.position):"start"in e||"end"in e?ky(e):"line"in e||"column"in e?Hd(e):""}function Hd(e){return Ey(e&&e.line)+":"+Ey(e&&e.column)}function ky(e){return Hd(e&&e.start)+"-"+Hd(e&&e.end)}function Ey(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let s="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof r=="string"?s=r:!u.cause&&r&&(c=!0,s=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?u.ruleId=a:(u.source=a.slice(0,h),u.ruleId=a.slice(h+1))}if(!u.place&&u.ancestors&&u.ancestors){const h=u.ancestors[u.ancestors.length-1];h&&(u.place=h.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=Fa(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vt.prototype.file="";Vt.prototype.name="";Vt.prototype.reason="";Vt.prototype.message="";Vt.prototype.stack="";Vt.prototype.column=void 0;Vt.prototype.line=void 0;Vt.prototype.ancestors=void 0;Vt.prototype.cause=void 0;Vt.prototype.fatal=void 0;Vt.prototype.place=void 0;Vt.prototype.ruleId=void 0;Vt.prototype.source=void 0;const bh={}.hasOwnProperty,AC=new Map,TC=/[A-Z]/g,jC=new Set(["table","tbody","thead","tfoot","tr"]),_C=new Set(["td","th"]),B1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function RC(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=IC(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=FC(l,r.jsx,r.jsxs)}const s={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?mh:yC,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=F1(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function F1(e,r,l){if(r.type==="element")return LC(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return DC(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return MC(e,r,l);if(r.type==="mdxjsEsm")return OC(e,r);if(r.type==="root")return zC(e,r,l);if(r.type==="text")return BC(e,r)}function LC(e,r,l){const a=e.schema;let s=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=mh,e.schema=s),e.ancestors.push(r);const u=U1(e,r.tagName,!1),c=UC(e,r);let f=xh(e,r);return jC.has(r.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!sC(h):!0})),I1(e,c,u,r),yh(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function DC(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Va(e,r.position)}function OC(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Va(e,r.position)}function MC(e,r,l){const a=e.schema;let s=a;r.name==="svg"&&a.space==="html"&&(s=mh,e.schema=s),e.ancestors.push(r);const u=r.name===null?e.Fragment:U1(e,r.name,!0),c=HC(e,r),f=xh(e,r);return I1(e,c,u,r),yh(c,f),e.ancestors.pop(),e.schema=a,e.create(r,u,c,l)}function zC(e,r,l){const a={};return yh(a,xh(e,r)),e.create(r,e.Fragment,a,l)}function BC(e,r){return r.value}function I1(e,r,l,a){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=a)}function yh(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function FC(e,r,l){return a;function a(s,u,c,f){const p=Array.isArray(c.children)?l:r;return f?p(u,c,f):p(u,c)}}function IC(e,r){return l;function l(a,s,u,c){const f=Array.isArray(u.children),h=gh(a);return r(s,u,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function UC(e,r){const l={};let a,s;for(s in r.properties)if(s!=="children"&&bh.call(r.properties,s)){const u=qC(e,s,r.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&_C.has(r.tagName)?a=f:l[c]=f}}if(a){const u=l.style||(l.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function HC(e,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(l,e.evaluater.evaluateExpression(f.argument))}else Va(e,r.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else Va(e,r.position);else u=a.value===null?!0:a.value;l[s]=u}return l}function xh(e,r){const l=[];let a=-1;const s=e.passKeys?new Map:AC;for(;++a<r.children.length;){const u=r.children[a];let c;if(e.passKeys){const h=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(h){const p=s.get(h)||0;c=h+"-"+p,s.set(h,p+1)}}const f=F1(e,u,c);f!==void 0&&l.push(f)}return l}function qC(e,r,l){const a=mC(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?rC(l):xC(l)),a.property==="style"){let s=typeof l=="object"?l:PC(e,String(l));return e.stylePropertyNameCase==="css"&&(s=$C(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?dC[a.property]||a.property:a.attribute,l]}}function PC(e,r){try{return CC(r,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const a=l,s=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=B1+"#cannot-parse-style-attribute",s}}function U1(e,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const s=r.split(".");let u=-1,c;for(;++u<s.length;){const f=my(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=my(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const s=a.value;return bh.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);Va(e)}function Va(e,r){const l=new Vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=B1+"#cannot-handle-mdx-estrees-without-createevaluater",l}function $C(e){const r={};let l;for(l in e)bh.call(e,l)&&(r[VC(l)]=e[l]);return r}function VC(e){let r=e.replace(TC,GC);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function GC(e){return"-"+e.toLowerCase()}const Xf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},YC={};function vh(e,r){const l=YC,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return H1(e,a,s)}function H1(e,r,l){if(XC(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cy(e.children,r,l)}return Array.isArray(e)?Cy(e,r,l):""}function Cy(e,r,l){const a=[];let s=-1;for(;++s<e.length;)a[s]=H1(e[s],r,l);return a.join("")}function XC(e){return!!(e&&typeof e=="object")}const Ny=document.createElement("i");function wh(e){const r="&"+e+";";Ny.innerHTML=r;const l=Ny.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function kn(e,r,l,a){const s=e.length;let u=0,c;if(r<0?r=-r>s?0:s+r:r=r>s?s:r,l=l>0?l:0,a.length<1e4)c=Array.from(a),c.unshift(r,l),e.splice(...c);else for(l&&e.splice(r,l);u<a.length;)c=a.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function zn(e,r){return e.length>0?(kn(e,e.length,0,r),e):r}const Ay={}.hasOwnProperty;function q1(e){const r={};let l=-1;for(;++l<e.length;)ZC(r,e[l]);return r}function ZC(e,r){let l;for(l in r){const s=(Ay.call(e,l)?e[l]:void 0)||(e[l]={}),u=r[l];let c;if(u)for(c in u){Ay.call(s,c)||(s[c]=[]);const f=u[c];QC(s[c],Array.isArray(f)?f:f?[f]:[])}}}function QC(e,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?e:a).push(r[l]);kn(e,0,0,a)}function P1(e,r){const l=Number.parseInt(e,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Hn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=il(/[A-Za-z]/),$t=il(/[\dA-Za-z]/),KC=il(/[#-'*+\--9=?A-Z^-~]/);function Ps(e){return e!==null&&(e<32||e===127)}const qd=il(/\d/),JC=il(/[\dA-Fa-f]/),WC=il(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function ot(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const du=il(new RegExp("\\p{P}|\\p{S}","u")),Dl=il(/\s/);function il(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function zi(e){const r=[];let l=-1,a=0,s=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&$t(e.charCodeAt(l+1))&&$t(e.charCodeAt(l+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(l+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(a,l),encodeURIComponent(c)),a=l+s+1,c=""),s&&(l+=s,s=0)}return r.join("")+e.slice(a)}function $e(e,r,l,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return Ie(h)?(e.enter(l),f(h)):r(h)}function f(h){return Ie(h)&&u++<s?(e.consume(h),f):(e.exit(l),r(h))}}const e3={tokenize:t3};function t3(e){const r=e.attempt(this.parser.constructs.contentInitial,a,s);let l;return r;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),$e(e,r,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const h=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=h),l=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const n3={tokenize:r3},Ty={tokenize:l3};function r3(e){const r=this,l=[];let a=0,s,u,c;return f;function f(j){if(a<l.length){const B=l[a];return r.containerState=B[1],e.attempt(B[0].continuation,h,p)(j)}return p(j)}function h(j){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,s&&C();const B=r.events.length;let q=B,L;for(;q--;)if(r.events[q][0]==="exit"&&r.events[q][1].type==="chunkFlow"){L=r.events[q][1].end;break}E(a);let I=B;for(;I<r.events.length;)r.events[I][1].end={...L},I++;return kn(r.events,q+1,0,r.events.slice(B)),r.events.length=I,p(j)}return f(j)}function p(j){if(a===l.length){if(!s)return v(j);if(s.currentConstruct&&s.currentConstruct.concrete)return w(j);r.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Ty,b,g)(j)}function b(j){return s&&C(),E(a),v(j)}function g(j){return r.parser.lazy[r.now().line]=a!==l.length,c=r.now().offset,w(j)}function v(j){return r.containerState={},e.attempt(Ty,x,w)(j)}function x(j){return a++,l.push([r.currentConstruct,r.containerState]),v(j)}function w(j){if(j===null){s&&C(),E(0),e.consume(j);return}return s=s||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),S(j)}function S(j){if(j===null){N(e.exit("chunkFlow"),!0),E(0),e.consume(j);return}return Ae(j)?(e.consume(j),N(e.exit("chunkFlow")),a=0,r.interrupt=void 0,f):(e.consume(j),S)}function N(j,B){const q=r.sliceStream(j);if(B&&q.push(null),j.previous=u,u&&(u.next=j),u=j,s.defineSkip(j.start),s.write(q),r.parser.lazy[j.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<c&&(!s.events[L][1].end||s.events[L][1].end.offset>c))return;const I=r.events.length;let $=I,G,M;for(;$--;)if(r.events[$][0]==="exit"&&r.events[$][1].type==="chunkFlow"){if(G){M=r.events[$][1].end;break}G=!0}for(E(a),L=I;L<r.events.length;)r.events[L][1].end={...M},L++;kn(r.events,$+1,0,r.events.slice(I)),r.events.length=L}}function E(j){let B=l.length;for(;B-- >j;){const q=l[B];r.containerState=q[1],q[0].exit.call(r,e)}l.length=j}function C(){s.write([null]),u=void 0,s=void 0,r.containerState._closeFlow=void 0}}function l3(e,r,l){return $e(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Di(e){if(e===null||ot(e)||Dl(e))return 1;if(du(e))return 2}function hu(e,r,l){const a=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!a.includes(u)&&(r=u(r,l),a.push(u))}return r}const Pd={name:"attention",resolveAll:i3,tokenize:a3};function i3(e,r){let l=-1,a,s,u,c,f,h,p,b;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(a=l;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[a][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;h=e[a][1].end.offset-e[a][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const g={...e[a][1].end},v={...e[l][1].start};jy(g,-h),jy(v,h),c={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:v},u={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[l][1].start}},s={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[l][1].start={...f.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=zn(p,[["enter",e[a][1],r],["exit",e[a][1],r]])),p=zn(p,[["enter",s,r],["enter",c,r],["exit",c,r],["enter",u,r]]),p=zn(p,hu(r.parser.constructs.insideSpan.null,e.slice(a+1,l),r)),p=zn(p,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",s,r]]),e[l][1].end.offset-e[l][1].start.offset?(b=2,p=zn(p,[["enter",e[l][1],r],["exit",e[l][1],r]])):b=0,kn(e,a-1,l-a+3,p),l=a+p.length-b-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function a3(e,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,s=Di(a);let u;return c;function c(h){return u=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===u)return e.consume(h),f;const p=e.exit("attentionSequence"),b=Di(h),g=!b||b===2&&s||l.includes(h),v=!s||s===2&&b||l.includes(a);return p._open=!!(u===42?g:g&&(s||!v)),p._close=!!(u===42?v:v&&(b||!g)),r(h)}}function jy(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const o3={name:"autolink",tokenize:s3};function s3(e,r,l){let a=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(x){return Qt(x)?(e.consume(x),c):x===64?l(x):p(x)}function c(x){return x===43||x===45||x===46||$t(x)?(a=1,f(x)):p(x)}function f(x){return x===58?(e.consume(x),a=0,h):(x===43||x===45||x===46||$t(x))&&a++<32?(e.consume(x),f):(a=0,p(x))}function h(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),r):x===null||x===32||x===60||Ps(x)?l(x):(e.consume(x),h)}function p(x){return x===64?(e.consume(x),b):KC(x)?(e.consume(x),p):l(x)}function b(x){return $t(x)?g(x):l(x)}function g(x){return x===46?(e.consume(x),a=0,b):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),r):v(x)}function v(x){if((x===45||$t(x))&&a++<63){const w=x===45?v:g;return e.consume(x),w}return l(x)}}const eo={partial:!0,tokenize:u3};function u3(e,r,l){return a;function a(u){return Ie(u)?$e(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Ae(u)?r(u):l(u)}}const $1={continuation:{tokenize:f3},exit:d3,name:"blockQuote",tokenize:c3};function c3(e,r,l){const a=this;return s;function s(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Ie(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function f3(e,r,l){const a=this;return s;function s(c){return Ie(c)?$e(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt($1,r,l)(c)}}function d3(e){e.exit("blockQuote")}const V1={name:"characterEscape",tokenize:h3};function h3(e,r,l){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return WC(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(u)}}const G1={name:"characterReference",tokenize:p3};function p3(e,r,l){const a=this;let s=0,u,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),h}function h(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),u=31,c=$t,b(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=JC,b):(e.enter("characterReferenceValue"),u=7,c=qd,b(g))}function b(g){if(g===59&&s){const v=e.exit("characterReferenceValue");return c===$t&&!wh(a.sliceSerialize(v))?l(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(g)&&s++<u?(e.consume(g),b):l(g)}}const _y={partial:!0,tokenize:g3},Ry={concrete:!0,name:"codeFenced",tokenize:m3};function m3(e,r,l){const a=this,s={partial:!0,tokenize:q};let u=0,c=0,f;return h;function h(L){return p(L)}function p(L){const I=a.events[a.events.length-1];return u=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(L)}function b(L){return L===f?(c++,e.consume(L),b):c<3?l(L):(e.exit("codeFencedFenceSequence"),Ie(L)?$e(e,g,"whitespace")(L):g(L))}function g(L){return L===null||Ae(L)?(e.exit("codeFencedFence"),a.interrupt?r(L):e.check(_y,S,B)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||Ae(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(L)):Ie(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$e(e,x,"whitespace")(L)):L===96&&L===f?l(L):(e.consume(L),v)}function x(L){return L===null||Ae(L)?g(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===null||Ae(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(L)):L===96&&L===f?l(L):(e.consume(L),w)}function S(L){return e.attempt(s,B,N)(L)}function N(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),E}function E(L){return u>0&&Ie(L)?$e(e,C,"linePrefix",u+1)(L):C(L)}function C(L){return L===null||Ae(L)?e.check(_y,S,B)(L):(e.enter("codeFlowValue"),j(L))}function j(L){return L===null||Ae(L)?(e.exit("codeFlowValue"),C(L)):(e.consume(L),j)}function B(L){return e.exit("codeFenced"),r(L)}function q(L,I,$){let G=0;return M;function M(X){return L.enter("lineEnding"),L.consume(X),L.exit("lineEnding"),V}function V(X){return L.enter("codeFencedFence"),Ie(X)?$e(L,Y,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):Y(X)}function Y(X){return X===f?(L.enter("codeFencedFenceSequence"),J(X)):$(X)}function J(X){return X===f?(G++,L.consume(X),J):G>=c?(L.exit("codeFencedFenceSequence"),Ie(X)?$e(L,U,"whitespace")(X):U(X)):$(X)}function U(X){return X===null||Ae(X)?(L.exit("codeFencedFence"),I(X)):$(X)}}}function g3(e,r,l){const a=this;return s;function s(c){return c===null?l(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}const Zf={name:"codeIndented",tokenize:y3},b3={partial:!0,tokenize:x3};function y3(e,r,l){const a=this;return s;function s(p){return e.enter("codeIndented"),$e(e,u,"linePrefix",5)(p)}function u(p){const b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(p):l(p)}function c(p){return p===null?h(p):Ae(p)?e.attempt(b3,c,h)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||Ae(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),f)}function h(p){return e.exit("codeIndented"),r(p)}}function x3(e,r,l){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?l(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):$e(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):Ae(c)?s(c):l(c)}}const v3={name:"codeText",previous:S3,resolve:w3,tokenize:k3};function w3(e){let r=e.length-4,l=3,a,s;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=l;++a<r;)if(e[a][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)s===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(s=a):(a===r||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),r-=a-s-2,a=s+2),s=void 0);return e}function S3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k3(e,r,l){let a=0,s,u;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),a++,f):(e.exit("codeTextSequence"),h(g))}function h(g){return g===null?l(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),h):g===96?(u=e.enter("codeTextSequence"),s=0,b(g)):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||Ae(g)?(e.exit("codeTextData"),h(g)):(e.consume(g),p)}function b(g){return g===96?(e.consume(g),s++,b):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(g)):(u.type="codeTextData",p(g))}}class E3{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const s=l||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&La(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),La(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),La(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);La(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);La(this.left,l.reverse())}}}function La(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function Y1(e){const r={};let l=-1,a,s,u,c,f,h,p;const b=new E3(e);for(;++l<b.length;){for(;l in r;)l=r[l];if(a=b.get(l),l&&a[1].type==="chunkFlow"&&b.get(l-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,u=0,u<h.length&&h[u][1].type==="lineEndingBlank"&&(u+=2),u<h.length&&h[u][1].type==="content"))for(;++u<h.length&&h[u][1].type!=="content";)h[u][1].type==="chunkText"&&(h[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,C3(b,l)),l=r[l],p=!0);else if(a[1]._container){for(u=l,s=void 0;u--;)if(c=b.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...b.get(s)[1].start},f=b.slice(s,l),f.unshift(a),b.splice(s,l-s+1,f))}}return kn(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function C3(e,r){const l=e.get(r)[1],a=e.get(r)[2];let s=r-1;const u=[];let c=l._tokenizer;c||(c=a.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,h=[],p={};let b,g,v=-1,x=l,w=0,S=0;const N=[S];for(;x;){for(;e.get(++s)[1]!==x;);u.push(s),x._tokenizer||(b=a.sliceStream(x),x.next||b.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=l;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(S=v+1,N.push(S),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),v=N.length;v--;){const E=f.slice(N[v],N[v+1]),C=u.pop();h.push([C,C+E.length-1]),e.splice(C,2,E)}for(h.reverse(),v=-1;++v<h.length;)p[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return p}const N3={resolve:T3,tokenize:j3},A3={partial:!0,tokenize:_3};function T3(e){return Y1(e),e}function j3(e,r){let l;return a;function a(f){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Ae(f)?e.check(A3,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function c(f){return e.consume(f),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function _3(e,r,l){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),$e(e,u,"linePrefix")}function u(c){if(c===null||Ae(c))return l(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):e.interrupt(a.parser.constructs.flow,l,r)(c)}}function X1(e,r,l,a,s,u,c,f,h){const p=h||Number.POSITIVE_INFINITY;let b=0;return g;function g(E){return E===60?(e.enter(a),e.enter(s),e.enter(u),e.consume(E),e.exit(u),v):E===null||E===32||E===41||Ps(E)?l(E):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),S(E))}function v(E){return E===62?(e.enter(u),e.consume(E),e.exit(u),e.exit(s),e.exit(a),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||Ae(E)?l(E):(e.consume(E),E===92?w:x)}function w(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function S(E){return!b&&(E===null||E===41||ot(E))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),r(E)):b<p&&E===40?(e.consume(E),b++,S):E===41?(e.consume(E),b--,S):E===null||E===32||E===40||Ps(E)?l(E):(e.consume(E),E===92?N:S)}function N(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function Z1(e,r,l,a,s,u){const c=this;let f=0,h;return p;function p(x){return e.enter(a),e.enter(s),e.consume(x),e.exit(s),e.enter(u),b}function b(x){return f>999||x===null||x===91||x===93&&!h||x===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?l(x):x===93?(e.exit(u),e.enter(s),e.consume(x),e.exit(s),e.exit(a),r):Ae(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||Ae(x)||f++>999?(e.exit("chunkString"),b(x)):(e.consume(x),h||(h=!Ie(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(e.consume(x),f++,g):g(x)}}function Q1(e,r,l,a,s,u){let c;return f;function f(v){return v===34||v===39||v===40?(e.enter(a),e.enter(s),e.consume(v),e.exit(s),c=v===40?41:v,h):l(v)}function h(v){return v===c?(e.enter(s),e.consume(v),e.exit(s),e.exit(a),r):(e.enter(u),p(v))}function p(v){return v===c?(e.exit(u),h(c)):v===null?l(v):Ae(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$e(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(v))}function b(v){return v===c||v===null||Ae(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:b)}function g(v){return v===c||v===92?(e.consume(v),b):b(v)}}function Ia(e,r){let l;return a;function a(s){return Ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l=!0,a):Ie(s)?$e(e,a,l?"linePrefix":"lineSuffix")(s):r(s)}}const R3={name:"definition",tokenize:D3},L3={partial:!0,tokenize:O3};function D3(e,r,l){const a=this;let s;return u;function u(x){return e.enter("definition"),c(x)}function c(x){return Z1.call(a,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return s=Hn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):l(x)}function h(x){return ot(x)?Ia(e,p)(x):p(x)}function p(x){return X1(e,b,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return e.attempt(L3,g,g)(x)}function g(x){return Ie(x)?$e(e,v,"whitespace")(x):v(x)}function v(x){return x===null||Ae(x)?(e.exit("definition"),a.parser.defined.push(s),r(x)):l(x)}}function O3(e,r,l){return a;function a(f){return ot(f)?Ia(e,s)(f):l(f)}function s(f){return Q1(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ie(f)?$e(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?r(f):l(f)}}const M3={name:"hardBreakEscape",tokenize:z3};function z3(e,r,l){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Ae(u)?(e.exit("hardBreakEscape"),r(u)):l(u)}}const B3={name:"headingAtx",resolve:F3,tokenize:I3};function F3(e,r){let l=e.length-2,a=3,s,u;return e[a][1].type==="whitespace"&&(a+=2),l-2>a&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&e[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[l][1].end},u={type:"chunkText",start:e[a][1].start,end:e[l][1].end,contentType:"text"},kn(e,a,l-a+1,[["enter",s,r],["enter",u,r],["exit",u,r],["exit",s,r]])),e}function I3(e,r,l){let a=0;return s;function s(b){return e.enter("atxHeading"),u(b)}function u(b){return e.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&a++<6?(e.consume(b),c):b===null||ot(b)?(e.exit("atxHeadingSequence"),f(b)):l(b)}function f(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||Ae(b)?(e.exit("atxHeading"),r(b)):Ie(b)?$e(e,f,"whitespace")(b):(e.enter("atxHeadingText"),p(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),f(b))}function p(b){return b===null||b===35||ot(b)?(e.exit("atxHeadingText"),f(b)):(e.consume(b),p)}}const U3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ly=["pre","script","style","textarea"],H3={concrete:!0,name:"htmlFlow",resolveTo:$3,tokenize:V3},q3={partial:!0,tokenize:Y3},P3={partial:!0,tokenize:G3};function $3(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function V3(e,r,l){const a=this;let s,u,c,f,h;return p;function p(A){return b(A)}function b(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),g}function g(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),u=!0,S):A===63?(e.consume(A),s=3,a.interrupt?r:_):Qt(A)?(e.consume(A),c=String.fromCharCode(A),N):l(A)}function v(A){return A===45?(e.consume(A),s=2,x):A===91?(e.consume(A),s=5,f=0,w):Qt(A)?(e.consume(A),s=4,a.interrupt?r:_):l(A)}function x(A){return A===45?(e.consume(A),a.interrupt?r:_):l(A)}function w(A){const re="CDATA[";return A===re.charCodeAt(f++)?(e.consume(A),f===re.length?a.interrupt?r:Y:w):l(A)}function S(A){return Qt(A)?(e.consume(A),c=String.fromCharCode(A),N):l(A)}function N(A){if(A===null||A===47||A===62||ot(A)){const re=A===47,fe=c.toLowerCase();return!re&&!u&&Ly.includes(fe)?(s=1,a.interrupt?r(A):Y(A)):U3.includes(c.toLowerCase())?(s=6,re?(e.consume(A),E):a.interrupt?r(A):Y(A)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(A):u?C(A):j(A))}return A===45||$t(A)?(e.consume(A),c+=String.fromCharCode(A),N):l(A)}function E(A){return A===62?(e.consume(A),a.interrupt?r:Y):l(A)}function C(A){return Ie(A)?(e.consume(A),C):M(A)}function j(A){return A===47?(e.consume(A),M):A===58||A===95||Qt(A)?(e.consume(A),B):Ie(A)?(e.consume(A),j):M(A)}function B(A){return A===45||A===46||A===58||A===95||$t(A)?(e.consume(A),B):q(A)}function q(A){return A===61?(e.consume(A),L):Ie(A)?(e.consume(A),q):j(A)}function L(A){return A===null||A===60||A===61||A===62||A===96?l(A):A===34||A===39?(e.consume(A),h=A,I):Ie(A)?(e.consume(A),L):$(A)}function I(A){return A===h?(e.consume(A),h=null,G):A===null||Ae(A)?l(A):(e.consume(A),I)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||ot(A)?q(A):(e.consume(A),$)}function G(A){return A===47||A===62||Ie(A)?j(A):l(A)}function M(A){return A===62?(e.consume(A),V):l(A)}function V(A){return A===null||Ae(A)?Y(A):Ie(A)?(e.consume(A),V):l(A)}function Y(A){return A===45&&s===2?(e.consume(A),F):A===60&&s===1?(e.consume(A),O):A===62&&s===4?(e.consume(A),D):A===63&&s===3?(e.consume(A),_):A===93&&s===5?(e.consume(A),Q):Ae(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(q3,H,J)(A)):A===null||Ae(A)?(e.exit("htmlFlowData"),J(A)):(e.consume(A),Y)}function J(A){return e.check(P3,U,H)(A)}function U(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),X}function X(A){return A===null||Ae(A)?J(A):(e.enter("htmlFlowData"),Y(A))}function F(A){return A===45?(e.consume(A),_):Y(A)}function O(A){return A===47?(e.consume(A),c="",z):Y(A)}function z(A){if(A===62){const re=c.toLowerCase();return Ly.includes(re)?(e.consume(A),D):Y(A)}return Qt(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),z):Y(A)}function Q(A){return A===93?(e.consume(A),_):Y(A)}function _(A){return A===62?(e.consume(A),D):A===45&&s===2?(e.consume(A),_):Y(A)}function D(A){return A===null||Ae(A)?(e.exit("htmlFlowData"),H(A)):(e.consume(A),D)}function H(A){return e.exit("htmlFlow"),r(A)}}function G3(e,r,l){const a=this;return s;function s(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):l(c)}function u(c){return a.parser.lazy[a.now().line]?l(c):r(c)}}function Y3(e,r,l){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(eo,r,l)}}const X3={name:"htmlText",tokenize:Z3};function Z3(e,r,l){const a=this;let s,u,c;return f;function f(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),h}function h(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),q):_===63?(e.consume(_),j):Qt(_)?(e.consume(_),$):l(_)}function p(_){return _===45?(e.consume(_),b):_===91?(e.consume(_),u=0,w):Qt(_)?(e.consume(_),C):l(_)}function b(_){return _===45?(e.consume(_),x):l(_)}function g(_){return _===null?l(_):_===45?(e.consume(_),v):Ae(_)?(c=g,O(_)):(e.consume(_),g)}function v(_){return _===45?(e.consume(_),x):g(_)}function x(_){return _===62?F(_):_===45?v(_):g(_)}function w(_){const D="CDATA[";return _===D.charCodeAt(u++)?(e.consume(_),u===D.length?S:w):l(_)}function S(_){return _===null?l(_):_===93?(e.consume(_),N):Ae(_)?(c=S,O(_)):(e.consume(_),S)}function N(_){return _===93?(e.consume(_),E):S(_)}function E(_){return _===62?F(_):_===93?(e.consume(_),E):S(_)}function C(_){return _===null||_===62?F(_):Ae(_)?(c=C,O(_)):(e.consume(_),C)}function j(_){return _===null?l(_):_===63?(e.consume(_),B):Ae(_)?(c=j,O(_)):(e.consume(_),j)}function B(_){return _===62?F(_):j(_)}function q(_){return Qt(_)?(e.consume(_),L):l(_)}function L(_){return _===45||$t(_)?(e.consume(_),L):I(_)}function I(_){return Ae(_)?(c=I,O(_)):Ie(_)?(e.consume(_),I):F(_)}function $(_){return _===45||$t(_)?(e.consume(_),$):_===47||_===62||ot(_)?G(_):l(_)}function G(_){return _===47?(e.consume(_),F):_===58||_===95||Qt(_)?(e.consume(_),M):Ae(_)?(c=G,O(_)):Ie(_)?(e.consume(_),G):F(_)}function M(_){return _===45||_===46||_===58||_===95||$t(_)?(e.consume(_),M):V(_)}function V(_){return _===61?(e.consume(_),Y):Ae(_)?(c=V,O(_)):Ie(_)?(e.consume(_),V):G(_)}function Y(_){return _===null||_===60||_===61||_===62||_===96?l(_):_===34||_===39?(e.consume(_),s=_,J):Ae(_)?(c=Y,O(_)):Ie(_)?(e.consume(_),Y):(e.consume(_),U)}function J(_){return _===s?(e.consume(_),s=void 0,X):_===null?l(_):Ae(_)?(c=J,O(_)):(e.consume(_),J)}function U(_){return _===null||_===34||_===39||_===60||_===61||_===96?l(_):_===47||_===62||ot(_)?G(_):(e.consume(_),U)}function X(_){return _===47||_===62||ot(_)?G(_):l(_)}function F(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),r):l(_)}function O(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),z}function z(_){return Ie(_)?$e(e,Q,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Q(_)}function Q(_){return e.enter("htmlTextData"),c(_)}}const Sh={name:"labelEnd",resolveAll:W3,resolveTo:e4,tokenize:t4},Q3={tokenize:n4},K3={tokenize:r4},J3={tokenize:l4};function W3(e){let r=-1;const l=[];for(;++r<e.length;){const a=e[r][1];if(l.push(e[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",r+=s}}return e.length!==l.length&&kn(e,0,e.length,l),e}function e4(e,r){let l=e.length,a=0,s,u,c,f;for(;l--;)if(s=e[l][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[l][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=l,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=l);const h={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",h,r],["enter",p,r]],f=zn(f,e.slice(u+1,u+a+3)),f=zn(f,[["enter",b,r]]),f=zn(f,hu(r.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),r)),f=zn(f,[["exit",b,r],e[c-2],e[c-1],["exit",p,r]]),f=zn(f,e.slice(c+1)),f=zn(f,[["exit",h,r]]),kn(e,u,e.length,f),e}function t4(e,r,l){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return f;function f(v){return u?u._inactive?g(v):(c=a.parser.defined.includes(Hn(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):l(v)}function h(v){return v===40?e.attempt(Q3,b,c?b:g)(v):v===91?e.attempt(K3,b,c?p:g)(v):c?b(v):g(v)}function p(v){return e.attempt(J3,b,g)(v)}function b(v){return r(v)}function g(v){return u._balanced=!0,l(v)}}function n4(e,r,l){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return ot(g)?Ia(e,u)(g):u(g)}function u(g){return g===41?b(g):X1(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return ot(g)?Ia(e,h)(g):b(g)}function f(g){return l(g)}function h(g){return g===34||g===39||g===40?Q1(e,p,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function p(g){return ot(g)?Ia(e,b)(g):b(g)}function b(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),r):l(g)}}function r4(e,r,l){const a=this;return s;function s(f){return Z1.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(Hn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(f):l(f)}function c(f){return l(f)}}function l4(e,r,l){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):l(u)}}const i4={name:"labelStartImage",resolveAll:Sh.resolveAll,tokenize:a4};function a4(e,r,l){const a=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):l(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(f):r(f)}}const o4={name:"labelStartLink",resolveAll:Sh.resolveAll,tokenize:s4};function s4(e,r,l){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(c):r(c)}}const Qf={name:"lineEnding",tokenize:u4};function u4(e,r){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$e(e,r,"linePrefix")}}const _s={name:"thematicBreak",tokenize:c4};function c4(e,r,l){let a=0,s;return u;function u(p){return e.enter("thematicBreak"),c(p)}function c(p){return s=p,f(p)}function f(p){return p===s?(e.enter("thematicBreakSequence"),h(p)):a>=3&&(p===null||Ae(p))?(e.exit("thematicBreak"),r(p)):l(p)}function h(p){return p===s?(e.consume(p),a++,h):(e.exit("thematicBreakSequence"),Ie(p)?$e(e,f,"whitespace")(p):f(p))}}const ln={continuation:{tokenize:p4},exit:g4,name:"list",tokenize:h4},f4={partial:!0,tokenize:b4},d4={partial:!0,tokenize:m4};function h4(e,r,l){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(x){const w=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:qd(x)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(_s,l,p)(x):p(x);if(!a.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return l(x)}function h(x){return qd(x)&&++c<10?(e.consume(x),h):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),p(x)):l(x)}function p(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,e.check(eo,a.interrupt?l:b,e.attempt(f4,v,g))}function b(x){return a.containerState.initialBlankLine=!0,u++,v(x)}function g(x){return Ie(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):l(x)}function v(x){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(x)}}function p4(e,r,l){const a=this;return a.containerState._closeFlow=void 0,e.check(eo,s,u);function s(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,$e(e,r,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Ie(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(d4,r,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,$e(e,e.attempt(ln,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function m4(e,r,l){const a=this;return $e(e,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?r(u):l(u)}}function g4(e){e.exit(this.containerState.type)}function b4(e,r,l){const a=this;return $e(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Ie(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const Dy={name:"setextUnderline",resolveTo:y4,tokenize:x4};function y4(e,r){let l=e.length,a,s,u;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){a=l;break}e[l][1].type==="paragraph"&&(s=l)}else e[l][1].type==="content"&&e.splice(l,1),!u&&e[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,r]),e.splice(u+1,0,["exit",e[a][1],r]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,r]),e}function x4(e,r,l){const a=this;let s;return u;function u(p){let b=a.events.length,g;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){g=a.events[b][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),s=p,c(p)):l(p)}function c(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===s?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),Ie(p)?$e(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Ae(p)?(e.exit("setextHeadingLine"),r(p)):l(p)}}const v4={tokenize:w4};function w4(e){const r=this,l=e.attempt(eo,a,e.attempt(this.parser.constructs.flowInitial,s,$e(e,e.attempt(this.parser.constructs.flow,s,e.attempt(N3,s)),"linePrefix")));return l;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const S4={resolveAll:J1()},k4=K1("string"),E4=K1("text");function K1(e){return{resolveAll:J1(e==="text"?C4:void 0),tokenize:r};function r(l){const a=this,s=this.parser.constructs[e],u=l.attempt(s,c,f);return c;function c(b){return p(b)?u(b):f(b)}function f(b){if(b===null){l.consume(b);return}return l.enter("data"),l.consume(b),h}function h(b){return p(b)?(l.exit("data"),u(b)):(l.consume(b),h)}function p(b){if(b===null)return!0;const g=s[b];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function J1(e){return r;function r(l,a){let s=-1,u;for(;++s<=l.length;)u===void 0?l[s]&&l[s][1].type==="data"&&(u=s,s++):(!l[s]||l[s][1].type!=="data")&&(s!==u+2&&(l[u][1].end=l[s-1][1].end,l.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(l,a):l}}function C4(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const a=e[l-1][1],s=r.sliceStream(a);let u=s.length,c=-1,f=0,h;for(;u--;){const p=s[u];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(p===-2)h=!0,f++;else if(p!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===e.length&&(f=0),f){const p={type:l===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(l,0,["enter",p,r],["exit",p,r]),l+=2)}l++}return e}const N4={42:ln,43:ln,45:ln,48:ln,49:ln,50:ln,51:ln,52:ln,53:ln,54:ln,55:ln,56:ln,57:ln,62:$1},A4={91:R3},T4={[-2]:Zf,[-1]:Zf,32:Zf},j4={35:B3,42:_s,45:[Dy,_s],60:H3,61:Dy,95:_s,96:Ry,126:Ry},_4={38:G1,92:V1},R4={[-5]:Qf,[-4]:Qf,[-3]:Qf,33:i4,38:G1,42:Pd,60:[o3,X3],91:o4,92:[M3,V1],93:Sh,95:Pd,96:v3},L4={null:[Pd,S4]},D4={null:[42,95]},O4={null:[]},M4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:D4,contentInitial:A4,disable:O4,document:N4,flow:j4,flowInitial:T4,insideSpan:L4,string:_4,text:R4},Symbol.toStringTag,{value:"Module"}));function z4(e,r,l){let a={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const s={},u=[];let c=[],f=[];const h={attempt:I(q),check:I(L),consume:C,enter:j,exit:B,interrupt:I(L,{interrupt:!0})},p={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:g};let b=r.tokenize.call(p,h);return r.resolveAll&&u.push(r),p;function g(V){return c=zn(c,V),N(),c[c.length-1]!==null?[]:($(r,0),p.events=hu(u,p.events,p),p.events)}function v(V,Y){return F4(x(V),Y)}function x(V){return B4(c,V)}function w(){const{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}=a;return{_bufferIndex:V,_index:Y,line:J,column:U,offset:X}}function S(V){s[V.line]=V.column,M()}function N(){let V;for(;a._index<c.length;){const Y=c[a._index];if(typeof Y=="string")for(V=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===V&&a._bufferIndex<Y.length;)E(Y.charCodeAt(a._bufferIndex));else E(Y)}}function E(V){b=b(V)}function C(V){Ae(V)?(a.line++,a.column=1,a.offset+=V===-3?2:1,M()):V!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=V}function j(V,Y){const J=Y||{};return J.type=V,J.start=w(),p.events.push(["enter",J,p]),f.push(J),J}function B(V){const Y=f.pop();return Y.end=w(),p.events.push(["exit",Y,p]),Y}function q(V,Y){$(V,Y.from)}function L(V,Y){Y.restore()}function I(V,Y){return J;function J(U,X,F){let O,z,Q,_;return Array.isArray(U)?H(U):"tokenize"in U?H([U]):D(U);function D(de){return he;function he(ge){const ue=ge!==null&&de[ge],xe=ge!==null&&de.null,be=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(xe)?xe:xe?[xe]:[]];return H(be)(ge)}}function H(de){return O=de,z=0,de.length===0?F:A(de[z])}function A(de){return he;function he(ge){return _=G(),Q=de,de.partial||(p.currentConstruct=de),de.name&&p.parser.constructs.disable.null.includes(de.name)?fe():de.tokenize.call(Y?Object.assign(Object.create(p),Y):p,h,re,fe)(ge)}}function re(de){return V(Q,_),X}function fe(de){return _.restore(),++z<O.length?A(O[z]):F}}}function $(V,Y){V.resolveAll&&!u.includes(V)&&u.push(V),V.resolve&&kn(p.events,Y,p.events.length-Y,V.resolve(p.events.slice(Y),p)),V.resolveTo&&(p.events=V.resolveTo(p.events,p))}function G(){const V=w(),Y=p.previous,J=p.currentConstruct,U=p.events.length,X=Array.from(f);return{from:U,restore:F};function F(){a=V,p.previous=Y,p.currentConstruct=J,p.events.length=U,f=X,M()}}function M(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function B4(e,r){const l=r.start._index,a=r.start._bufferIndex,s=r.end._index,u=r.end._bufferIndex;let c;if(l===s)c=[e[l].slice(a,u)];else{if(c=e.slice(l,s),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function F4(e,r){let l=-1;const a=[];let s;for(;++l<e.length;){const u=e[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
|
|
17
|
+
`;break}case-3:{c=`\r
|
|
18
|
+
`;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function I4(e){const a={constructs:q1([M4,...(e||{}).extensions||[]]),content:s(e3),defined:[],document:s(n3),flow:s(v4),lazy:{},string:s(k4),text:s(E4)};return a;function s(u){return c;function c(f){return z4(a,u,f)}}}function U4(e){for(;!Y1(e););return e}const Oy=/[\0\t\n\r]/g;function H4(){let e=1,r="",l=!0,a;return s;function s(u,c,f){const h=[];let p,b,g,v,x;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),g=0,r="",l&&(u.charCodeAt(0)===65279&&g++,l=void 0);g<u.length;){if(Oy.lastIndex=g,p=Oy.exec(u),v=p&&p.index!==void 0?p.index:u.length,x=u.charCodeAt(v),!p){r=u.slice(g);break}if(x===10&&g===v&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),g<v&&(h.push(u.slice(g,v)),e+=v-g),x){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}g=v+1}return f&&(a&&h.push(-5),r&&h.push(r),h.push(null)),h}}const q4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function P4(e){return e.replace(q4,$4)}function $4(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),u=s===120||s===88;return P1(l.slice(u?2:1),u?16:10)}return wh(l)||e}const W1={}.hasOwnProperty;function V4(e,r,l){return typeof r!="string"&&(l=r,r=void 0),G4(l)(U4(I4(l).document().write(H4()(e,r,!0))))}function G4(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(bt),autolinkProtocol:G,autolinkEmail:G,atxHeading:u(ze),blockQuote:u(xe),characterEscape:G,characterReference:G,codeFenced:u(be),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(be,c),codeText:u(ye,c),codeTextData:G,data:G,codeFlowValue:G,definition:u(ke),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Ce),hardBreakEscape:u(We),hardBreakTrailing:u(We),htmlFlow:u(qe,c),htmlFlowData:G,htmlText:u(qe,c),htmlTextData:G,image:u(_t),label:c,link:u(bt),listItem:u(et),listItemValue:v,listOrdered:u(pt,g),listUnordered:u(pt),paragraph:u(Gt),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(ze),strong:u(Ft),thematicBreak:u(kr)},exit:{atxHeading:h(),atxHeadingSequence:q,autolink:h(),autolinkEmail:ue,autolinkProtocol:ge,blockQuote:h(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:de,characterReference:he,codeFenced:h(N),codeFencedFence:S,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:M,codeIndented:h(E),codeText:h(X),codeTextData:M,data:M,definition:h(),definitionDestinationString:B,definitionLabelString:C,definitionTitleString:j,emphasis:h(),hardBreakEscape:h(Y),hardBreakTrailing:h(Y),htmlFlow:h(J),htmlFlowData:M,htmlText:h(U),htmlTextData:M,image:h(O),label:Q,labelText:z,lineEnding:V,link:h(F),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:re,resourceDestinationString:_,resourceTitleString:D,resource:H,setextHeading:h($),setextHeadingLineSequence:I,setextHeadingText:L,strong:h(),thematicBreak:h()}};e0(r,(e||{}).mdastExtensions||[]);const l={};return a;function a(ae){let me={type:"root",children:[]};const je={stack:[me],tokenStack:[],config:r,enter:f,exit:p,buffer:c,resume:b,data:l},Me=[];let Ge=-1;for(;++Ge<ae.length;)if(ae[Ge][1].type==="listOrdered"||ae[Ge][1].type==="listUnordered")if(ae[Ge][0]==="enter")Me.push(Ge);else{const Yt=Me.pop();Ge=s(ae,Yt,Ge)}for(Ge=-1;++Ge<ae.length;){const Yt=r[ae[Ge][0]];W1.call(Yt,ae[Ge][1].type)&&Yt[ae[Ge][1].type].call(Object.assign({sliceSerialize:ae[Ge][2].sliceSerialize},je),ae[Ge][1])}if(je.tokenStack.length>0){const Yt=je.tokenStack[je.tokenStack.length-1];(Yt[1]||My).call(je,void 0,Yt[0])}for(me.position={start:Qr(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:Qr(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<r.transforms.length;)me=r.transforms[Ge](me)||me;return me}function s(ae,me,je){let Me=me-1,Ge=-1,Yt=!1,cn,At,yt,Rt;for(;++Me<=je;){const Ze=ae[Me];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Ge++:Ge--,Rt=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(cn&&!Rt&&!Ge&&!yt&&(yt=Me),Rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Rt=void 0}if(!Ge&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Ge===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(cn){let En=Me;for(At=void 0;En--;){const fn=ae[En];if(fn[1].type==="lineEnding"||fn[1].type==="lineEndingBlank"){if(fn[0]==="exit")continue;At&&(ae[At][1].type="lineEndingBlank",Yt=!0),fn[1].type="lineEnding",At=En}else if(!(fn[1].type==="linePrefix"||fn[1].type==="blockQuotePrefix"||fn[1].type==="blockQuotePrefixWhitespace"||fn[1].type==="blockQuoteMarker"||fn[1].type==="listItemIndent"))break}yt&&(!At||yt<At)&&(cn._spread=!0),cn.end=Object.assign({},At?ae[At][1].start:Ze[1].end),ae.splice(At||Me,0,["exit",cn,Ze[2]]),Me++,je++}if(Ze[1].type==="listItemPrefix"){const En={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};cn=En,ae.splice(Me,0,["enter",En,Ze[2]]),Me++,je++,yt=void 0,Rt=!0}}}return ae[me][1]._spread=Yt,je}function u(ae,me){return je;function je(Me){f.call(this,ae(Me),Me),me&&me.call(this,Me)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ae,me,je){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([me,je||void 0]),ae.position={start:Qr(me.start),end:void 0}}function h(ae){return me;function me(je){ae&&ae.call(this,je),p.call(this,je)}}function p(ae,me){const je=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==ae.type&&(me?me.call(this,ae,Me[0]):(Me[1]||My).call(this,ae,Me[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Fa({start:ae.start,end:ae.end})+"): it’s not open");je.position.end=Qr(ae.end)}function b(){return vh(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ae){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function x(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.lang=ae}function w(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.meta=ae}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/(\r?\n|\r)$/g,"")}function C(ae){const me=this.resume(),je=this.stack[this.stack.length-1];je.label=me,je.identifier=Hn(this.sliceSerialize(ae)).toLowerCase()}function j(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function B(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function q(ae){const me=this.stack[this.stack.length-1];if(!me.depth){const je=this.sliceSerialize(ae).length;me.depth=je}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function I(ae){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ae){const je=this.stack[this.stack.length-1].children;let Me=je[je.length-1];(!Me||Me.type!=="text")&&(Me=tt(),Me.position={start:Qr(ae.start),end:void 0},je.push(Me)),this.stack.push(Me)}function M(ae){const me=this.stack.pop();me.value+=this.sliceSerialize(ae),me.position.end=Qr(ae.end)}function V(ae){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=me.children[me.children.length-1];je.position.end=Qr(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(me.type)&&(G.call(this,ae),M.call(this,ae))}function Y(){this.data.atHardBreak=!0}function J(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function U(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function X(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function F(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function O(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function z(ae){const me=this.sliceSerialize(ae),je=this.stack[this.stack.length-2];je.label=P4(me),je.identifier=Hn(me).toLowerCase()}function Q(){const ae=this.stack[this.stack.length-1],me=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const Me=ae.children;je.children=Me}else je.alt=me}function _(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function D(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function H(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function re(ae){const me=this.resume(),je=this.stack[this.stack.length-1];je.label=me,je.identifier=Hn(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function fe(ae){this.data.characterReferenceType=ae.type}function de(ae){const me=this.sliceSerialize(ae),je=this.data.characterReferenceType;let Me;je?(Me=P1(me,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=wh(me);const Ge=this.stack[this.stack.length-1];Ge.value+=Me}function he(ae){const me=this.stack.pop();me.position.end=Qr(ae.end)}function ge(ae){M.call(this,ae);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ae)}function ue(ae){M.call(this,ae);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ae)}function xe(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function ye(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function ze(){return{type:"heading",depth:0,children:[]}}function We(){return{type:"break"}}function qe(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function pt(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function et(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Gt(){return{type:"paragraph",children:[]}}function Ft(){return{type:"strong",children:[]}}function tt(){return{type:"text",value:""}}function kr(){return{type:"thematicBreak"}}}function Qr(e){return{line:e.line,column:e.column,offset:e.offset}}function e0(e,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?e0(e,a):Y4(e,a)}}function Y4(e,r){let l;for(l in r)if(W1.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&e[l].push(...a);break}case"transforms":{const a=r[l];a&&e[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(e[l],a);break}}}function My(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Fa({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Fa({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Fa({start:r.start,end:r.end})+") is still open")}function X4(e){const r=this;r.parser=l;function l(a){return V4(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function Z4(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function Q4(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
|
|
19
|
+
`}]}function K4(e,r){const l=r.value?r.value+`
|
|
20
|
+
`:"",a={},s=r.lang?r.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function J4(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function W4(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function eN(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),s=zi(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const h={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+s,id:l+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(r,p),e.applyData(r,p)}function tN(e,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function nN(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function t0(e,r){const l=r.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const s=e.all(r),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function rN(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return t0(e,r);const s={src:zi(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(r,u),e.applyData(r,u)}function lN(e,r){const l={src:zi(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(r,a),e.applyData(r,a)}function iN(e,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(r,a),e.applyData(r,a)}function aN(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return t0(e,r);const s={href:zi(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function oN(e,r){const l={href:zi(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function sN(e,r,l){const a=e.all(r),s=l?uN(l):n0(r),u={},c=[];if(typeof r.checked=="boolean"){const b=a[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const b=a[f];(s||f!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
|
|
21
|
+
`}),b.type==="element"&&b.tagName==="p"&&!s?c.push(...b.children):c.push(b)}const h=a[a.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
22
|
+
`});const p={type:"element",tagName:"li",properties:u,children:c};return e.patch(r,p),e.applyData(r,p)}function uN(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const l=e.children;let a=-1;for(;!r&&++a<l.length;)r=n0(l[a])}return r}function n0(e){const r=e.spread;return r??e.children.length>1}function cN(e,r){const l={},a=e.all(r);let s=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:l,children:e.wrap(a,!0)};return e.patch(r,u),e.applyData(r,u)}function fN(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function dN(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function hN(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function pN(e,r){const l=e.all(r),a=l.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(r.children[0],c),s.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},f=gh(r.children[1]),h=M1(r.children[r.children.length-1]);f&&h&&(c.position={start:f,end:h}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(r,u),e.applyData(r,u)}function mN(e,r,l){const a=l?l.children:void 0,u=(a?a.indexOf(r):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,f=c?c.length:r.children.length;let h=-1;const p=[];for(;++h<f;){const g=r.children[h],v={},x=c?c[h]:void 0;x&&(v.align=x);let w={type:"element",tagName:u,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),p.push(w)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(r,b),e.applyData(r,b)}function gN(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const zy=9,By=32;function bN(e){const r=String(e),l=/\r?\n|\r/g;let a=l.exec(r),s=0;const u=[];for(;a;)u.push(Fy(r.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=l.exec(r);return u.push(Fy(r.slice(s),s>0,!1)),u.join("")}function Fy(e,r,l){let a=0,s=e.length;if(r){let u=e.codePointAt(a);for(;u===zy||u===By;)a++,u=e.codePointAt(a)}if(l){let u=e.codePointAt(s-1);for(;u===zy||u===By;)s--,u=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function yN(e,r){const l={type:"text",value:bN(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function xN(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const vN={blockquote:Z4,break:Q4,code:K4,delete:J4,emphasis:W4,footnoteReference:eN,heading:tN,html:nN,imageReference:rN,image:lN,inlineCode:iN,linkReference:aN,link:oN,listItem:sN,list:cN,paragraph:fN,root:dN,strong:hN,table:pN,tableCell:gN,tableRow:mN,text:yN,thematicBreak:xN,toml:Ss,yaml:Ss,definition:Ss,footnoteDefinition:Ss};function Ss(){}const r0=-1,pu=0,Ua=1,$s=2,kh=3,Eh=4,Ch=5,Nh=6,l0=7,i0=8,Iy=typeof self=="object"?self:globalThis,wN=(e,r)=>{const l=(s,u)=>(e.set(u,s),s),a=s=>{if(e.has(s))return e.get(s);const[u,c]=r[s];switch(u){case pu:case r0:return l(c,s);case Ua:{const f=l([],s);for(const h of c)f.push(a(h));return f}case $s:{const f=l({},s);for(const[h,p]of c)f[a(h)]=a(p);return f}case kh:return l(new Date(c),s);case Eh:{const{source:f,flags:h}=c;return l(new RegExp(f,h),s)}case Ch:{const f=l(new Map,s);for(const[h,p]of c)f.set(a(h),a(p));return f}case Nh:{const f=l(new Set,s);for(const h of c)f.add(a(h));return f}case l0:{const{name:f,message:h}=c;return l(new Iy[f](h),s)}case i0:return l(BigInt(c),s);case"BigInt":return l(Object(BigInt(c)),s);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return l(new DataView(f),c)}}return l(new Iy[u](c),s)};return a},Uy=e=>wN(new Map,e)(0),ki="",{toString:SN}={},{keys:kN}=Object,Da=e=>{const r=typeof e;if(r!=="object"||!e)return[pu,r];const l=SN.call(e).slice(8,-1);switch(l){case"Array":return[Ua,ki];case"Object":return[$s,ki];case"Date":return[kh,ki];case"RegExp":return[Eh,ki];case"Map":return[Ch,ki];case"Set":return[Nh,ki];case"DataView":return[Ua,l]}return l.includes("Array")?[Ua,l]:l.includes("Error")?[l0,l]:[$s,l]},ks=([e,r])=>e===pu&&(r==="function"||r==="symbol"),EN=(e,r,l,a)=>{const s=(c,f)=>{const h=a.push(c)-1;return l.set(f,h),h},u=c=>{if(l.has(c))return l.get(c);let[f,h]=Da(c);switch(f){case pu:{let b=c;switch(h){case"bigint":f=i0,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return s([r0],c)}return s([f,b],c)}case Ua:{if(h){let v=c;return h==="DataView"?v=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(c)),s([h,[...v]],c)}const b=[],g=s([f,b],c);for(const v of c)b.push(u(v));return g}case $s:{if(h)switch(h){case"BigInt":return s([h,c.toString()],c);case"Boolean":case"Number":case"String":return s([h,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const b=[],g=s([f,b],c);for(const v of kN(c))(e||!ks(Da(c[v])))&&b.push([u(v),u(c[v])]);return g}case kh:return s([f,c.toISOString()],c);case Eh:{const{source:b,flags:g}=c;return s([f,{source:b,flags:g}],c)}case Ch:{const b=[],g=s([f,b],c);for(const[v,x]of c)(e||!(ks(Da(v))||ks(Da(x))))&&b.push([u(v),u(x)]);return g}case Nh:{const b=[],g=s([f,b],c);for(const v of c)(e||!ks(Da(v)))&&b.push(u(v));return g}}const{message:p}=c;return s([f,{name:h,message:p}],c)};return u},Hy=(e,{json:r,lossy:l}={})=>{const a=[];return EN(!(r||l),!!r,new Map,a)(e),a},Vs=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Uy(Hy(e,r)):structuredClone(e):(e,r)=>Uy(Hy(e,r));function CN(e,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function NN(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function AN(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||CN,a=e.options.footnoteBackLabel||NN,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const b=e.all(p),g=String(p.identifier).toUpperCase(),v=zi(g.toLowerCase());let x=0;const w=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++x<=S;){w.length>0&&w.push({type:"text",value:" "});let C=typeof l=="string"?l:l(h,x);typeof C=="string"&&(C={type:"text",value:C}),w.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,x),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const N=b[b.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const C=N.children[N.children.length-1];C&&C.type==="text"?C.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...w)}else b.push(...w);const E={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(b,!0)};e.patch(p,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Vs(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
23
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
24
|
+
`}]}}const mu=(function(e){if(e==null)return RN;if(typeof e=="function")return gu(e);if(typeof e=="object")return Array.isArray(e)?TN(e):jN(e);if(typeof e=="string")return _N(e);throw new Error("Expected function, string, or object as test")});function TN(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=mu(e[l]);return gu(a);function a(...s){let u=-1;for(;++u<r.length;)if(r[u].apply(this,s))return!0;return!1}}function jN(e){const r=e;return gu(l);function l(a){const s=a;let u;for(u in e)if(s[u]!==r[u])return!1;return!0}}function _N(e){return gu(r);function r(l){return l&&l.type===e}}function gu(e){return r;function r(l,a,s){return!!(LN(l)&&e.call(this,l,typeof a=="number"?a:void 0,s||void 0))}}function RN(){return!0}function LN(e){return e!==null&&typeof e=="object"&&"type"in e}const a0=[],DN=!0,$d=!1,ON="skip";function o0(e,r,l,a){let s;typeof r=="function"&&typeof l!="function"?(a=l,l=r):s=r;const u=mu(s),c=a?-1:1;f(e,void 0,[])();function f(h,p,b){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=a0,w,S,N;if((!r||u(h,p,b[b.length-1]||void 0))&&(x=MN(l(h,b)),x[0]===$d))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==ON)for(S=(a?E.children.length:-1)+c,N=b.concat(E);S>-1&&S<E.children.length;){const C=E.children[S];if(w=f(C,S,N)(),w[0]===$d)return w;S=typeof w[1]=="number"?w[1]:S+c}}return x}}}function MN(e){return Array.isArray(e)?e:typeof e=="number"?[DN,e]:e==null?a0:[e]}function Ah(e,r,l,a){let s,u,c;typeof r=="function"&&typeof l!="function"?(u=void 0,c=r,s=l):(u=r,c=l,s=a),o0(e,u,f,s);function f(h,p){const b=p[p.length-1],g=b?b.children.indexOf(h):void 0;return c(h,g,b)}}const Vd={}.hasOwnProperty,zN={};function BN(e,r){const l=r||zN,a=new Map,s=new Map,u=new Map,c={...vN,...l.handlers},f={all:p,applyData:IN,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:h,options:l,patch:FN,wrap:HN};return Ah(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?a:s,v=String(b.identifier).toUpperCase();g.has(v)||g.set(v,b)}}),f;function h(b,g){const v=b.type,x=f.handlers[v];if(Vd.call(f.handlers,v)&&x)return x(f,b,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in b){const{children:S,...N}=b,E=Vs(N);return E.children=f.all(b),E}return Vs(b)}return(f.options.unknownHandler||UN)(f,b,g)}function p(b){const g=[];if("children"in b){const v=b.children;let x=-1;for(;++x<v.length;){const w=f.one(v[x],b);if(w){if(x&&v[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=qy(w.value)),!Array.isArray(w)&&w.type==="element")){const S=w.children[0];S&&S.type==="text"&&(S.value=qy(S.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function FN(e,r){e.position&&(r.position=NC(e))}function IN(e,r){let l=r;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const c="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,Vs(u)),"children"in l&&l.children&&s!==null&&s!==void 0&&(l.children=s)}return l}function UN(e,r){const l=r.data||{},a="value"in r&&!(Vd.call(l,"hProperties")||Vd.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function HN(e,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
|
|
25
|
+
`});++a<e.length;)a&&l.push({type:"text",value:`
|
|
26
|
+
`}),l.push(e[a]);return r&&e.length>0&&l.push({type:"text",value:`
|
|
27
|
+
`}),l}function qy(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function Py(e,r){const l=BN(e,r),a=l.one(e,void 0),s=AN(l),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
|
|
28
|
+
`},s),u}function qN(e,r){return e&&"run"in e?async function(l,a){const s=Py(l,{file:a,...r});await e.run(s,a)}:function(l,a){return Py(l,{file:a,...e||r})}}function $y(e){if(e)throw e}var Kf,Vy;function PN(){if(Vy)return Kf;Vy=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},u=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var b=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},c=function(p,b){l&&b.name==="__proto__"?l(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},f=function(p,b){if(b==="__proto__")if(e.call(p,b)){if(a)return a(p,b).value}else return;return p[b]};return Kf=function h(){var p,b,g,v,x,w,S=arguments[0],N=1,E=arguments.length,C=!1;for(typeof S=="boolean"&&(C=S,S=arguments[1]||{},N=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});N<E;++N)if(p=arguments[N],p!=null)for(b in p)g=f(S,b),v=f(p,b),S!==v&&(C&&v&&(u(v)||(x=s(v)))?(x?(x=!1,w=g&&s(g)?g:[]):w=g&&u(g)?g:{},c(S,{name:b,newValue:h(C,w,v)})):typeof v<"u"&&c(S,{name:b,newValue:v}));return S},Kf}var $N=PN();const Jf=Ws($N);function Gd(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function VN(){const e=[],r={run:l,use:a};return r;function l(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(h,...p){const b=e[++u];let g=-1;if(h){c(h);return}for(;++g<s.length;)(p[g]===null||p[g]===void 0)&&(p[g]=s[g]);s=p,b?GN(b,f)(...p):c(null,...p)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),r}}function GN(e,r){let l;return a;function a(...c){const f=e.length>c.length;let h;f&&c.push(s);try{h=e.apply(this,c)}catch(p){const b=p;if(f&&l)throw b;return s(b)}f||(h&&h.then&&typeof h.then=="function"?h.then(u,s):h instanceof Error?s(h):u(h))}function s(c,...f){l||(l=!0,r(c,...f))}function u(c){s(null,c)}}const Zn={basename:YN,dirname:XN,extname:ZN,join:QN,sep:"/"};function YN(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');to(e);let l=0,a=-1,s=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":e.slice(l,a)}if(r===e)return"";let c=-1,f=r.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){l=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===r.codePointAt(f--)?f<0&&(a=s):(f=-1,a=c));return l===a?a=c:a<0&&(a=e.length),e.slice(l,a)}function XN(e){if(to(e),e.length===0)return".";let r=-1,l=e.length,a;for(;--l;)if(e.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function ZN(e){to(e);let r=e.length,l=-1,a=0,s=-1,u=0,c;for(;r--;){const f=e.codePointAt(r);if(f===47){if(c){a=r+1;break}continue}l<0&&(c=!0,l=r+1),f===46?s<0?s=r:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||l<0||u===0||u===1&&s===l-1&&s===a+1?"":e.slice(s,l)}function QN(...e){let r=-1,l;for(;++r<e.length;)to(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":KN(l)}function KN(e){to(e);const r=e.codePointAt(0)===47;let l=JN(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function JN(e,r){let l="",a=0,s=-1,u=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(h=l.lastIndexOf("/"),h!==l.length-1){h<0?(l="",a=0):(l=l.slice(0,h),a=l.length-1-l.lastIndexOf("/")),s=c,u=0;continue}}else if(l.length>0){l="",a=0,s=c,u=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+e.slice(s+1,c):l=e.slice(s+1,c),a=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return l}function to(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const WN={cwd:eA};function eA(){return"/"}function Yd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tA(e){if(typeof e=="string")e=new URL(e);else if(!Yd(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return nA(e)}function nA(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=e.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(r)}const Wf=["history","path","basename","stem","extname","dirname"];class s0{constructor(r){let l;r?Yd(r)?l={path:r}:typeof r=="string"||rA(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":WN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Wf.length;){const u=Wf[a];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let s;for(s in l)Wf.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Zn.basename(this.path):void 0}set basename(r){td(r,"basename"),ed(r,"basename"),this.path=Zn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Zn.dirname(this.path):void 0}set dirname(r){Gy(this.basename,"dirname"),this.path=Zn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Zn.extname(this.path):void 0}set extname(r){if(ed(r,"extname"),Gy(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Yd(r)&&(r=tA(r)),td(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Zn.basename(this.path,this.extname):void 0}set stem(r){td(r,"stem"),ed(r,"stem"),this.path=Zn.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const s=this.message(r,l,a);throw s.fatal=!0,s}info(r,l,a){const s=this.message(r,l,a);return s.fatal=void 0,s}message(r,l,a){const s=new Vt(r,l,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function ed(e,r){if(e&&e.includes(Zn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Zn.sep+"`")}function td(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Gy(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function rA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lA=(function(e){const a=this.constructor.prototype,s=a[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),iA={}.hasOwnProperty;class Th extends lA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=VN()}copy(){const r=new Th;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(Jf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(ld("data",this.frozen),this.namespace[r]=l,this):iA.call(this.namespace,r)&&this.namespace[r]||void 0:r?(ld("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=l.call(r,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=Es(r),a=this.parser||this.Parser;return nd("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),nd("process",this.parser||this.Parser),rd("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(u,c){const f=Es(r),h=a.parse(f);a.run(h,f,function(b,g,v){if(b||!g||!v)return p(b);const x=g,w=a.stringify(x,v);sA(w)?v.value=w:v.result=w,p(b,v)});function p(b,g){b||!g?c(b):u?u(g):l(void 0,g)}}}processSync(r){let l=!1,a;return this.freeze(),nd("processSync",this.parser||this.Parser),rd("processSync",this.compiler||this.Compiler),this.process(r,s),Xy("processSync","process",l),a;function s(u,c){l=!0,$y(u),a=c}}run(r,l,a){Yy(r),this.freeze();const s=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?u(void 0,a):new Promise(u);function u(c,f){const h=Es(l);s.run(r,h,p);function p(b,g,v){const x=g||r;b?f(b):c?c(x):a(void 0,x,v)}}}runSync(r,l){let a=!1,s;return this.run(r,l,u),Xy("runSync","run",a),s;function u(c,f){$y(c),s=f,a=!0}}stringify(r,l){this.freeze();const a=Es(l),s=this.compiler||this.Compiler;return rd("stringify",s),Yy(r),s(r,a)}use(r,...l){const a=this.attachers,s=this.namespace;if(ld("use",this.frozen),r!=null)if(typeof r=="function")h(r,l);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...g]=p;h(b,g)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(p.plugins),p.settings&&(s.settings=Jf(!0,s.settings,p.settings))}function f(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const g=p[b];u(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,b){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...b]);else if(b.length>0){let[x,...w]=b;const S=a[v][1];Gd(S)&&Gd(x)&&(x=Jf(!0,S,x)),a[v]=[p,x,...w]}}}}const aA=new Th().freeze();function nd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ld(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yy(e){if(!Gd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Xy(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Es(e){return oA(e)?e:new s0(e)}function oA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sA(e){return typeof e=="string"||uA(e)}function uA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Zy=[],Qy={allowDangerousHtml:!0},fA=/^(https?|ircs?|mailto|xmpp)$/i,dA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jh(e){const r=hA(e),l=pA(e);return mA(r.runSync(r.parse(l),l),e)}function hA(e){const r=e.rehypePlugins||Zy,l=e.remarkPlugins||Zy,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qy}:Qy;return aA().use(X4).use(l).use(qN,a).use(r)}function pA(e){const r=e.children||"",l=new s0;return typeof r=="string"&&(l.value=r),l}function mA(e,r){const l=r.allowedElements,a=r.allowElement,s=r.components,u=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,h=r.urlTransform||gA;for(const b of dA)Object.hasOwn(r,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+cA+b.id,void 0);return Ah(e,p),RC(e,{Fragment:y.Fragment,components:s,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(b,g,v){if(b.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let x;for(x in Xf)if(Object.hasOwn(Xf,x)&&Object.hasOwn(b.properties,x)){const w=b.properties[x],S=Xf[x];(S===null||S.includes(b.tagName))&&(b.properties[x]=h(String(w||""),x,b))}}if(b.type==="element"){let x=l?!l.includes(b.tagName):u?u.includes(b.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(b,g,v)),x&&v&&typeof g=="number")return f&&b.children?v.children.splice(g,1,...b.children):v.children.splice(g,1),g}}}function gA(e){const r=e.indexOf(":"),l=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return r===-1||s!==-1&&r>s||l!==-1&&r>l||a!==-1&&r>a||fA.test(e.slice(0,r))?e:""}function Ky(e,r){const l=String(e);if(typeof r!="string")throw new TypeError("Expected character");let a=0,s=l.indexOf(r);for(;s!==-1;)a++,s=l.indexOf(r,s+r.length);return a}function bA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yA(e,r,l){const s=mu((l||{}).ignore||[]),u=xA(r);let c=-1;for(;++c<u.length;)o0(e,"text",f);function f(p,b){let g=-1,v;for(;++g<b.length;){const x=b[g],w=v?v.children:void 0;if(s(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return h(p,b)}function h(p,b){const g=b[b.length-1],v=u[c][0],x=u[c][1];let w=0;const N=g.children.indexOf(p);let E=!1,C=[];v.lastIndex=0;let j=v.exec(p.value);for(;j;){const B=j.index,q={index:j.index,input:j.input,stack:[...b,p]};let L=x(...j,q);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?v.lastIndex=B+1:(w!==B&&C.push({type:"text",value:p.value.slice(w,B)}),Array.isArray(L)?C.push(...L):L&&C.push(L),w=B+j[0].length,E=!0),!v.global)break;j=v.exec(p.value)}return E?(w<p.value.length&&C.push({type:"text",value:p.value.slice(w)}),g.children.splice(N,1,...C)):C=[p],N+C.length}}function xA(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<l.length;){const s=l[a];r.push([vA(s[0]),wA(s[1])])}return r}function vA(e){return typeof e=="string"?new RegExp(bA(e),"g"):e}function wA(e){return typeof e=="function"?e:function(){return e}}const id="phrasing",ad=["autolink","link","image","label"];function SA(){return{transforms:[jA],enter:{literalAutolink:EA,literalAutolinkEmail:od,literalAutolinkHttp:od,literalAutolinkWww:od},exit:{literalAutolink:TA,literalAutolinkEmail:AA,literalAutolinkHttp:CA,literalAutolinkWww:NA}}}function kA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:id,notInConstruct:ad},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:id,notInConstruct:ad},{character:":",before:"[ps]",after:"\\/",inConstruct:id,notInConstruct:ad}]}}function EA(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function od(e){this.config.enter.autolinkProtocol.call(this,e)}function CA(e){this.config.exit.autolinkProtocol.call(this,e)}function NA(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function AA(e){this.config.exit.autolinkEmail.call(this,e)}function TA(e){this.exit(e)}function jA(e){yA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_A],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),RA]],{ignore:["link","linkReference"]})}function _A(e,r,l,a,s){let u="";if(!u0(s)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!LA(l)))return!1;const c=DA(l+a);if(!c[0])return!1;const f={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function RA(e,r,l,a){return!u0(a,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function LA(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function DA(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let l=r[0],a=l.indexOf(")");const s=Ky(e,"(");let u=Ky(e,")");for(;a!==-1&&s>u;)e+=l.slice(0,a+1),l=l.slice(a+1),a=l.indexOf(")"),u++;return[e,l]}function u0(e,r){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Dl(l)||du(l))&&(!r||l!==47)}c0.peek=qA;function OA(){this.buffer()}function MA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function zA(){this.buffer()}function BA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function FA(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Hn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function IA(e){this.exit(e)}function UA(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Hn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function HA(e){this.exit(e)}function qA(){return"["}function c0(e,r,l,a){const s=l.createTracker(a);let u=s.move("[^");const c=l.enter("footnoteReference"),f=l.enter("reference");return u+=s.move(l.safe(l.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function PA(){return{enter:{gfmFootnoteCallString:OA,gfmFootnoteCall:MA,gfmFootnoteDefinitionLabelString:zA,gfmFootnoteDefinition:BA},exit:{gfmFootnoteCallString:FA,gfmFootnoteCall:IA,gfmFootnoteDefinitionLabelString:UA,gfmFootnoteDefinition:HA}}}function $A(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:c0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(a,s,u,c){const f=u.createTracker(c);let h=f.move("[^");const p=u.enter("footnoteDefinition"),b=u.enter("label");return h+=f.move(u.safe(u.associationId(a),{before:h,after:"]"})),b(),h+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),h+=f.move((r?`
|
|
29
|
+
`:" ")+u.indentLines(u.containerFlow(a,f.current()),r?f0:VA))),p(),h}}function VA(e,r,l){return r===0?e:f0(e,r,l)}function f0(e,r,l){return(l?"":" ")+e}const GA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];d0.peek=KA;function YA(){return{canContainEols:["delete"],enter:{strikethrough:ZA},exit:{strikethrough:QA}}}function XA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:GA}],handlers:{delete:d0}}}function ZA(e){this.enter({type:"delete",children:[]},e)}function QA(e){this.exit(e)}function d0(e,r,l,a){const s=l.createTracker(a),u=l.enter("strikethrough");let c=s.move("~~");return c+=l.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function KA(){return"~"}function JA(e){return e.length}function WA(e,r){const l=r||{},a=(l.align||[]).concat(),s=l.stringLength||JA,u=[],c=[],f=[],h=[];let p=0,b=-1;for(;++b<e.length;){const S=[],N=[];let E=-1;for(e[b].length>p&&(p=e[b].length);++E<e[b].length;){const C=e6(e[b][E]);if(l.alignDelimiters!==!1){const j=s(C);N[E]=j,(h[E]===void 0||j>h[E])&&(h[E]=j)}S.push(C)}c[b]=S,f[b]=N}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)u[g]=Jy(a[g]);else{const S=Jy(a);for(;++g<p;)u[g]=S}g=-1;const v=[],x=[];for(;++g<p;){const S=u[g];let N="",E="";S===99?(N=":",E=":"):S===108?N=":":S===114&&(E=":");let C=l.alignDelimiters===!1?1:Math.max(1,h[g]-N.length-E.length);const j=N+"-".repeat(C)+E;l.alignDelimiters!==!1&&(C=N.length+C+E.length,C>h[g]&&(h[g]=C),x[g]=C),v[g]=j}c.splice(1,0,v),f.splice(1,0,x),b=-1;const w=[];for(;++b<c.length;){const S=c[b],N=f[b];g=-1;const E=[];for(;++g<p;){const C=S[g]||"";let j="",B="";if(l.alignDelimiters!==!1){const q=h[g]-(N[g]||0),L=u[g];L===114?j=" ".repeat(q):L===99?q%2?(j=" ".repeat(q/2+.5),B=" ".repeat(q/2-.5)):(j=" ".repeat(q/2),B=j):B=" ".repeat(q)}l.delimiterStart!==!1&&!g&&E.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&C==="")&&(l.delimiterStart!==!1||g)&&E.push(" "),l.alignDelimiters!==!1&&E.push(j),E.push(C),l.alignDelimiters!==!1&&E.push(B),l.padding!==!1&&E.push(" "),(l.delimiterEnd!==!1||g!==p-1)&&E.push("|")}w.push(l.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
|
|
30
|
+
`)}function e6(e){return e==null?"":String(e)}function Jy(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function t6(e,r,l,a){const s=l.enter("blockquote"),u=l.createTracker(a);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(e,u.current()),n6);return s(),c}function n6(e,r,l){return">"+(l?"":" ")+e}function r6(e,r){return Wy(e,r.inConstruct,!0)&&!Wy(e,r.notInConstruct,!1)}function Wy(e,r,l){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return l;let a=-1;for(;++a<r.length;)if(e.includes(r[a]))return!0;return!1}function ex(e,r,l,a){let s=-1;for(;++s<l.unsafe.length;)if(l.unsafe[s].character===`
|
|
31
|
+
`&&r6(l.stack,l.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
32
|
+
`}function l6(e,r){const l=String(e);let a=l.indexOf(r),s=a,u=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+r.length,a=l.indexOf(r,s);return c}function i6(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function a6(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function o6(e,r,l,a){const s=a6(l),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(i6(e,l)){const g=l.enter("codeIndented"),v=l.indentLines(u,s6);return g(),v}const f=l.createTracker(a),h=s.repeat(Math.max(l6(u,s)+1,3)),p=l.enter("codeFenced");let b=f.move(h);if(e.lang){const g=l.enter(`codeFencedLang${c}`);b+=f.move(l.safe(e.lang,{before:b,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=l.enter(`codeFencedMeta${c}`);b+=f.move(" "),b+=f.move(l.safe(e.meta,{before:b,after:`
|
|
33
|
+
`,encode:["`"],...f.current()})),g()}return b+=f.move(`
|
|
34
|
+
`),u&&(b+=f.move(u+`
|
|
35
|
+
`)),b+=f.move(h),p(),b}function s6(e,r,l){return(l?"":" ")+e}function _h(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function u6(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("definition");let f=l.enter("label");const h=l.createTracker(a);let p=h.move("[");return p+=h.move(l.safe(l.associationId(e),{before:p,after:"]",...h.current()})),p+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(l.safe(e.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(f=l.enter("destinationRaw"),p+=h.move(l.safe(e.url,{before:p,after:e.title?" ":`
|
|
36
|
+
`,...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),p+=h.move(" "+s),p+=h.move(l.safe(e.title,{before:p,after:s,...h.current()})),p+=h.move(s),f()),c(),p}function c6(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Ga(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gs(e,r,l){const a=Di(e),s=Di(r);return a===void 0?s===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}h0.peek=f6;function h0(e,r,l,a){const s=c6(l),u=l.enter("emphasis"),c=l.createTracker(a),f=c.move(s);let h=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=h.charCodeAt(0),b=Gs(a.before.charCodeAt(a.before.length-1),p,s);b.inside&&(h=Ga(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=Gs(a.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Ga(g));const x=c.move(s);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},f+h+x}function f6(e,r,l){return l.options.emphasis||"*"}function d6(e,r){let l=!1;return Ah(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return l=!0,$d}),!!((!e.depth||e.depth<3)&&vh(e)&&(r.options.setext||l))}function h6(e,r,l,a){const s=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(a);if(d6(e,l)){const b=l.enter("headingSetext"),g=l.enter("phrasing"),v=l.containerPhrasing(e,{...u.current(),before:`
|
|
37
|
+
`,after:`
|
|
38
|
+
`});return g(),b(),v+`
|
|
39
|
+
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
40
|
+
`))+1))}const c="#".repeat(s),f=l.enter("headingAtx"),h=l.enter("phrasing");u.move(c+" ");let p=l.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
+
`,...u.current()});return/^[\t ]/.test(p)&&(p=Ga(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,l.options.closeAtx&&(p+=" "+c),h(),f(),p}p0.peek=p6;function p0(e){return e.value||""}function p6(){return"<"}m0.peek=m6;function m0(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.enter("image");let f=l.enter("label");const h=l.createTracker(a);let p=h.move("![");return p+=h.move(l.safe(e.alt,{before:p,after:"]",...h.current()})),p+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(l.safe(e.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(f=l.enter("destinationRaw"),p+=h.move(l.safe(e.url,{before:p,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=l.enter(`title${u}`),p+=h.move(" "+s),p+=h.move(l.safe(e.title,{before:p,after:s,...h.current()})),p+=h.move(s),f()),p+=h.move(")"),c(),p}function m6(){return"!"}g0.peek=g6;function g0(e,r,l,a){const s=e.referenceType,u=l.enter("imageReference");let c=l.enter("label");const f=l.createTracker(a);let h=f.move("![");const p=l.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!p||p!==g?h+=f.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function g6(){return"!"}b0.peek=b6;function b0(e,r,l){let a=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<l.unsafe.length;){const c=l.unsafe[u],f=l.compilePattern(c);let h;if(c.atBreak)for(;h=f.exec(a);){let p=h.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(h.index+1)}}return s+a+s}function b6(){return"`"}function y0(e,r){const l=vh(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(l===e.url||"mailto:"+l===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}x0.peek=y6;function x0(e,r,l,a){const s=_h(l),u=s==='"'?"Quote":"Apostrophe",c=l.createTracker(a);let f,h;if(y0(e,l)){const b=l.stack;l.stack=[],f=l.enter("autolink");let g=c.move("<");return g+=c.move(l.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),l.stack=b,g}f=l.enter("link"),h=l.enter("label");let p=c.move("[");return p+=c.move(l.containerPhrasing(e,{before:p,after:"](",...c.current()})),p+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=l.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(l.safe(e.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(h=l.enter("destinationRaw"),p+=c.move(l.safe(e.url,{before:p,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=l.enter(`title${u}`),p+=c.move(" "+s),p+=c.move(l.safe(e.title,{before:p,after:s,...c.current()})),p+=c.move(s),h()),p+=c.move(")"),f(),p}function y6(e,r,l){return y0(e,l)?"<":"["}v0.peek=x6;function v0(e,r,l,a){const s=e.referenceType,u=l.enter("linkReference");let c=l.enter("label");const f=l.createTracker(a);let h=f.move("[");const p=l.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(p+"]["),c();const b=l.stack;l.stack=[],c=l.enter("reference");const g=l.safe(l.associationId(e),{before:h,after:"]",...f.current()});return c(),l.stack=b,u(),s==="full"||!p||p!==g?h+=f.move(g+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function x6(){return"["}function Rh(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function v6(e){const r=Rh(e),l=e.options.bulletOther;if(!l)return r==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+l+"`) to be different");return l}function w6(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function w0(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function S6(e,r,l,a){const s=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?w6(l):Rh(l);const f=e.ordered?c==="."?")":".":v6(l);let h=r&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(h=!0),w0(l)===c&&b){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(c=f),l.bulletCurrent=c;const p=l.containerFlow(e,a);return l.bulletLastUsed=c,l.bulletCurrent=u,s(),p}function k6(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function E6(e,r,l,a){const s=k6(l);let u=l.bulletCurrent||Rh(l);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(l.options.incrementListMarker===!1?0:r.children.indexOf(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=l.createTracker(a);f.move(u+" ".repeat(c-u.length)),f.shift(c);const h=l.enter("listItem"),p=l.indentLines(l.containerFlow(e,f.current()),b);return h(),p;function b(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?u:u+" ".repeat(c-u.length))+g}}function C6(e,r,l,a){const s=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,a);return u(),s(),c}const N6=mu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function A6(e,r,l,a){return(e.children.some(function(c){return N6(c)})?l.containerPhrasing:l.containerFlow).call(l,e,a)}function T6(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}S0.peek=j6;function S0(e,r,l,a){const s=T6(l),u=l.enter("strong"),c=l.createTracker(a),f=c.move(s+s);let h=c.move(l.containerPhrasing(e,{after:s,before:f,...c.current()}));const p=h.charCodeAt(0),b=Gs(a.before.charCodeAt(a.before.length-1),p,s);b.inside&&(h=Ga(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=Gs(a.after.charCodeAt(0),g,s);v.inside&&(h=h.slice(0,-1)+Ga(g));const x=c.move(s+s);return u(),l.attentionEncodeSurroundingInfo={after:v.outside,before:b.outside},f+h+x}function j6(e,r,l){return l.options.strong||"*"}function _6(e,r,l,a){return l.safe(e.value,a)}function R6(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function L6(e,r,l){const a=(w0(l)+(l.options.ruleSpaces?" ":"")).repeat(R6(l));return l.options.ruleSpaces?a.slice(0,-1):a}const k0={blockquote:t6,break:ex,code:o6,definition:u6,emphasis:h0,hardBreak:ex,heading:h6,html:p0,image:m0,imageReference:g0,inlineCode:b0,link:x0,linkReference:v0,list:S6,listItem:E6,paragraph:C6,root:A6,strong:S0,text:_6,thematicBreak:L6};function D6(){return{enter:{table:O6,tableData:tx,tableHeader:tx,tableRow:z6},exit:{codeText:B6,table:M6,tableData:sd,tableHeader:sd,tableRow:sd}}}function O6(e){const r=e._align;this.enter({type:"table",align:r.map(function(l){return l==="none"?null:l}),children:[]},e),this.data.inTable=!0}function M6(e){this.exit(e),this.data.inTable=void 0}function z6(e){this.enter({type:"tableRow",children:[]},e)}function sd(e){this.exit(e)}function tx(e){this.enter({type:"tableCell",children:[]},e)}function B6(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,F6));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(e)}function F6(e,r){return r==="|"?r:e}function I6(e){const r=e||{},l=r.tableCellPadding,a=r.tablePipeAlign,s=r.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:h,tableRow:f}};function c(x,w,S,N){return p(b(x,S,N),x.align)}function f(x,w,S,N){const E=g(x,S,N),C=p([E]);return C.slice(0,C.indexOf(`
|
|
43
|
+
`))}function h(x,w,S,N){const E=S.enter("tableCell"),C=S.enter("phrasing"),j=S.containerPhrasing(x,{...N,before:u,after:u});return C(),E(),j}function p(x,w){return WA(x,{align:w,alignDelimiters:a,padding:l,stringLength:s})}function b(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("table");for(;++E<N.length;)C[E]=g(N[E],w,S);return j(),C}function g(x,w,S){const N=x.children;let E=-1;const C=[],j=w.enter("tableRow");for(;++E<N.length;)C[E]=h(N[E],x,w,S);return j(),C}function v(x,w,S){let N=k0.inlineCode(x,w,S);return S.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function U6(){return{exit:{taskListCheckValueChecked:nx,taskListCheckValueUnchecked:nx,paragraph:q6}}}function H6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:P6}}}function nx(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function q6(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const a=l.children[0];if(a&&a.type==="text"){const s=r.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===l&&(a.value=a.value.slice(1),a.value.length===0?l.children.shift():l.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,l.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function P6(e,r,l,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(a);u&&f.move(c);let h=k0.listItem(e,r,l,{...a,...f.current()});return u&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),h;function p(b){return b+c}}function $6(){return[SA(),PA(),YA(),D6(),U6()]}function V6(e){return{extensions:[kA(),$A(e),XA(),I6(e),H6()]}}const G6={tokenize:J6,partial:!0},E0={tokenize:W6,partial:!0},C0={tokenize:eT,partial:!0},N0={tokenize:tT,partial:!0},Y6={tokenize:nT,partial:!0},A0={name:"wwwAutolink",tokenize:Q6,previous:j0},T0={name:"protocolAutolink",tokenize:K6,previous:_0},Sr={name:"emailAutolink",tokenize:Z6,previous:R0},Wn={};function X6(){return{text:Wn}}let Al=48;for(;Al<123;)Wn[Al]=Sr,Al++,Al===58?Al=65:Al===91&&(Al=97);Wn[43]=Sr;Wn[45]=Sr;Wn[46]=Sr;Wn[95]=Sr;Wn[72]=[Sr,T0];Wn[104]=[Sr,T0];Wn[87]=[Sr,A0];Wn[119]=[Sr,A0];function Z6(e,r,l){const a=this;let s,u;return c;function c(g){return!Xd(g)||!R0.call(a,a.previous)||Lh(a.events)?l(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return Xd(g)?(e.consume(g),f):g===64?(e.consume(g),h):l(g)}function h(g){return g===46?e.check(Y6,b,p)(g):g===45||g===95||$t(g)?(u=!0,e.consume(g),h):b(g)}function p(g){return e.consume(g),s=!0,h}function b(g){return u&&s&&Qt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(g)):l(g)}}function Q6(e,r,l){const a=this;return s;function s(c){return c!==87&&c!==119||!j0.call(a,a.previous)||Lh(a.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(G6,e.attempt(E0,e.attempt(C0,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function K6(e,r,l){const a=this;let s="",u=!1;return c;function c(g){return(g===72||g===104)&&_0.call(a,a.previous)&&!Lh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),f):l(g)}function f(g){if(Qt(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(g),h}return l(g)}function h(g){return g===47?(e.consume(g),u?p:(u=!0,h)):l(g)}function p(g){return g===null||Ps(g)||ot(g)||Dl(g)||du(g)?l(g):e.attempt(E0,e.attempt(C0,b),l)(g)}function b(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(g)}}function J6(e,r,l){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function W6(e,r,l){let a,s,u;return c;function c(p){return p===46||p===95?e.check(N0,h,f)(p):p===null||ot(p)||Dl(p)||p!==45&&du(p)?h(p):(u=!0,e.consume(p),c)}function f(p){return p===95?a=!0:(s=a,a=void 0),e.consume(p),c}function h(p){return s||a||!u?l(p):r(p)}}function eT(e,r){let l=0,a=0;return s;function s(c){return c===40?(l++,e.consume(c),s):c===41&&a<l?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(N0,r,u)(c):c===null||ot(c)||Dl(c)?r(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function tT(e,r,l){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||ot(f)||Dl(f)?r(f):l(f)}function s(f){return f===null||f===40||f===91||ot(f)||Dl(f)?r(f):a(f)}function u(f){return Qt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),a):Qt(f)?(e.consume(f),c):l(f)}}function nT(e,r,l){return a;function a(u){return e.consume(u),s}function s(u){return $t(u)?l(u):r(u)}}function j0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ot(e)}function _0(e){return!Qt(e)}function R0(e){return!(e===47||Xd(e))}function Xd(e){return e===43||e===45||e===46||e===95||$t(e)}function Lh(e){let r=e.length,l=!1;for(;r--;){const a=e[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const rT={tokenize:fT,partial:!0};function lT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sT,continuation:{tokenize:uT},exit:cT}},text:{91:{name:"gfmFootnoteCall",tokenize:oT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:iT,resolveTo:aT}}}}function iT(e,r,l){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const h=a.events[s][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return l(h);const p=Hn(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!u.includes(p.slice(1))?l(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),r(h))}}function aT(e,r){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[l+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",a,r],e[l+3],e[l+4],["enter",s,r],["exit",s,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",a,r]];return e.splice(l,e.length-l+1,...f),e}function oT(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?l(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(u>999||g===93&&!c||g===null||g===91||ot(g))return l(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Hn(a.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(g)}return ot(g)||(c=!0),u++,e.consume(g),g===92?b:p}function b(g){return g===91||g===92||g===93?(e.consume(g),u++,p):p(g)}}function sT(e,r,l){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",b):l(w)}function b(w){if(c>999||w===93&&!f||w===null||w===91||ot(w))return l(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return u=Hn(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return ot(w)||(f=!0),c++,e.consume(w),w===92?g:b}function g(w){return w===91||w===92||w===93?(e.consume(w),c++,b):b(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),s.includes(u)||s.push(u),$e(e,x,"gfmFootnoteDefinitionWhitespace")):l(w)}function x(w){return r(w)}}function uT(e,r,l){return e.check(eo,r,e.attempt(rT,r,l))}function cT(e){e.exit("gfmFootnoteDefinition")}function fT(e,r,l){const a=this;return $e(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(u):l(u)}}function dT(e){let l=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return l==null&&(l=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let p=h;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[h][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[h][1].end)},g={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[h][1].start)},v=[["enter",b,f],["enter",c[p][1],f],["exit",c[p][1],f],["enter",g,f]],x=f.parser.constructs.insideSpan.null;x&&kn(v,v.length,0,hu(x,c.slice(p+1,h),f)),kn(v,v.length,0,[["exit",g,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",b,f]]),kn(c,p-1,h-p+3,v),h=p+v.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function u(c,f,h){const p=this.previous,b=this.events;let g=0;return v;function v(w){return p===126&&b[b.length-1][1].type!=="characterEscape"?h(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const S=Di(p);if(w===126)return g>1?h(w):(c.consume(w),g++,x);if(g<2&&!l)return h(w);const N=c.exit("strikethroughSequenceTemporary"),E=Di(w);return N._open=!E||E===2&&!!S,N._close=!S||S===2&&!!E,f(w)}}}class hT{constructor(){this.map=[]}add(r,l,a){pT(this,r,l,a)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const a=[];for(;l>0;)l-=1,a.push(r.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),r.length=this.map[l][0];a.push(r.slice()),r.length=0;let s=a.pop();for(;s;){for(const u of s)r.push(u);s=a.pop()}this.map.length=0}}function pT(e,r,l,a){let s=0;if(!(l===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===r){e.map[s][1]+=l,e.map[s][2].push(...a);return}s+=1}e.map.push([r,l,a])}}function mT(e,r){let l=!1;const a=[];for(;r<e.length;){const s=e[r];if(l){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(l=!0);r+=1}return a}function gT(){return{flow:{null:{name:"table",tokenize:bT,resolveAll:yT}}}}function bT(e,r,l){const a=this;let s=0,u=0,c;return f;function f(M){let V=a.events.length-1;for(;V>-1;){const U=a.events[V][1].type;if(U==="lineEnding"||U==="linePrefix")V--;else break}const Y=V>-1?a.events[V][1].type:null,J=Y==="tableHead"||Y==="tableRow"?L:h;return J===L&&a.parser.lazy[a.now().line]?l(M):J(M)}function h(M){return e.enter("tableHead"),e.enter("tableRow"),p(M)}function p(M){return M===124||(c=!0,u+=1),b(M)}function b(M){return M===null?l(M):Ae(M)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),x):l(M):Ie(M)?$e(e,b,"whitespace")(M):(u+=1,c&&(c=!1,s+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),c=!0,b):(e.enter("data"),g(M)))}function g(M){return M===null||M===124||ot(M)?(e.exit("data"),b(M)):(e.consume(M),M===92?v:g)}function v(M){return M===92||M===124?(e.consume(M),g):g(M)}function x(M){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(M):(e.enter("tableDelimiterRow"),c=!1,Ie(M)?$e(e,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):w(M))}function w(M){return M===45||M===58?N(M):M===124?(c=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):q(M)}function S(M){return Ie(M)?$e(e,N,"whitespace")(M):N(M)}function N(M){return M===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),E):M===45?(u+=1,E(M)):M===null||Ae(M)?B(M):q(M)}function E(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):q(M)}function C(M){return M===45?(e.consume(M),C):M===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(M))}function j(M){return Ie(M)?$e(e,B,"whitespace")(M):B(M)}function B(M){return M===124?w(M):M===null||Ae(M)?!c||s!==u?q(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):q(M)}function q(M){return l(M)}function L(M){return e.enter("tableRow"),I(M)}function I(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),I):M===null||Ae(M)?(e.exit("tableRow"),r(M)):Ie(M)?$e(e,I,"whitespace")(M):(e.enter("data"),$(M))}function $(M){return M===null||M===124||ot(M)?(e.exit("data"),I(M)):(e.consume(M),M===92?G:$)}function G(M){return M===92||M===124?(e.consume(M),$):$(M)}}function yT(e,r){let l=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,p,b,g;const v=new hT;for(;++l<e.length;){const x=e[l],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(rx(v,r,h,p,b),b=void 0,h=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",p,r]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(l,0,[["enter",b,r]])),s=w.type==="tableDelimiterRow"?2:b?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],g=Cs(v,r,u,s,void 0,g),u=[0,0,0,0]),c[2]=l)):w.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],g=Cs(v,r,u,s,void 0,g)),u=c,c=[u[1],l,0,0])):w.type==="tableHead"?(f=!0,h=l):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=l,u[1]!==0?(c[0]=c[1],g=Cs(v,r,u,s,l,g)):c[1]!==0&&(g=Cs(v,r,c,s,l,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=l)}for(h!==0&&rx(v,r,h,p,b),v.consume(r.events),l=-1;++l<r.events.length;){const x=r.events[l];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=mT(r.events,l))}return e}function Cs(e,r,l,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ni(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const h=Ni(r.events,l[1]);if(u={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(l[1],0,[["enter",u,r]]),l[2]!==0){const p=Ni(r.events,l[2]),b=Ni(r.events,l[3]),g={type:f,start:Object.assign({},p),end:Object.assign({},b)};if(e.add(l[2],0,[["enter",g,r]]),a!==2){const v=r.events[l[2]],x=r.events[l[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",l[3]>l[2]+1){const w=l[2]+1,S=l[3]-l[2]-1;e.add(w,S,[])}}e.add(l[3]+1,0,[["exit",g,r]])}return s!==void 0&&(u.end=Object.assign({},Ni(r.events,s)),e.add(s,0,[["exit",u,r]]),u=void 0),u}function rx(e,r,l,a,s){const u=[],c=Ni(r.events,l);s&&(s.end=Object.assign({},c),u.push(["exit",s,r])),a.end=Object.assign({},c),u.push(["exit",a,r]),e.add(l+1,0,u)}function Ni(e,r){const l=e[r],a=l[0]==="enter"?"start":"end";return l[1][a]}const xT={name:"tasklistCheck",tokenize:wT};function vT(){return{text:{91:xT}}}function wT(e,r,l){const a=this;return s;function s(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),u)}function u(h){return ot(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):l(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(h)}function f(h){return Ae(h)?r(h):Ie(h)?e.check({tokenize:ST},r,l)(h):l(h)}}function ST(e,r,l){return $e(e,a,"whitespace");function a(s){return s===null?l(s):r(s)}}function kT(e){return q1([X6(),lT(),dT(e),gT(),vT()])}const ET={};function Dh(e){const r=this,l=e||ET,a=r.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(kT(l)),u.push($6()),c.push(V6(l))}function L0(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(l=L0(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function D0(){for(var e,r,l=0,a="",s=arguments.length;l<s;l++)(e=arguments[l])&&(r=L0(e))&&(a&&(a+=" "),a+=r);return a}var CT=Object.create,bu=Object.defineProperty,NT=Object.defineProperties,AT=Object.getOwnPropertyDescriptor,TT=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertyNames,Ys=Object.getOwnPropertySymbols,jT=Object.getPrototypeOf,Oh=Object.prototype.hasOwnProperty,M0=Object.prototype.propertyIsEnumerable,lx=(e,r,l)=>r in e?bu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,Kn=(e,r)=>{for(var l in r||(r={}))Oh.call(r,l)&&lx(e,l,r[l]);if(Ys)for(var l of Ys(r))M0.call(r,l)&&lx(e,l,r[l]);return e},yu=(e,r)=>NT(e,TT(r)),z0=(e,r)=>{var l={};for(var a in e)Oh.call(e,a)&&r.indexOf(a)<0&&(l[a]=e[a]);if(e!=null&&Ys)for(var a of Ys(e))r.indexOf(a)<0&&M0.call(e,a)&&(l[a]=e[a]);return l},_T=(e,r)=>function(){return r||(0,e[O0(e)[0]])((r={exports:{}}).exports,r),r.exports},RT=(e,r)=>{for(var l in r)bu(e,l,{get:r[l],enumerable:!0})},LT=(e,r,l,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of O0(r))!Oh.call(e,s)&&s!==l&&bu(e,s,{get:()=>r[s],enumerable:!(a=AT(r,s))||a.enumerable});return e},DT=(e,r,l)=>(l=e!=null?CT(jT(e)):{},LT(!e||!e.__esModule?bu(l,"default",{value:e,enumerable:!0}):l,e)),OT=_T({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,r){var l=(function(){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,u={},c={util:{encode:function w(S){return S instanceof f?new f(S.type,w(S.content),S.alias):Array.isArray(S)?S.map(w):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++s}),w.__id},clone:function w(S,N){N=N||{};var E,C;switch(c.util.type(S)){case"Object":if(C=c.util.objId(S),N[C])return N[C];E={},N[C]=E;for(var j in S)S.hasOwnProperty(j)&&(E[j]=w(S[j],N));return E;case"Array":return C=c.util.objId(S),N[C]?N[C]:(E=[],N[C]=E,S.forEach(function(B,q){E[q]=w(B,N)}),E);default:return S}},getLanguage:function(w){for(;w;){var S=a.exec(w.className);if(S)return S[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,S){w.className=w.className.replace(RegExp(a,"gi"),""),w.classList.add("language-"+S)},isActive:function(w,S,N){for(var E="no-"+S;w;){var C=w.classList;if(C.contains(S))return!0;if(C.contains(E))return!1;w=w.parentElement}return!!N}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(w,S){var N=c.util.clone(c.languages[w]);for(var E in S)N[E]=S[E];return N},insertBefore:function(w,S,N,E){E=E||c.languages;var C=E[w],j={};for(var B in C)if(C.hasOwnProperty(B)){if(B==S)for(var q in N)N.hasOwnProperty(q)&&(j[q]=N[q]);N.hasOwnProperty(B)||(j[B]=C[B])}var L=E[w];return E[w]=j,c.languages.DFS(c.languages,function(I,$){$===L&&I!=w&&(this[I]=j)}),j},DFS:function w(S,N,E,C){C=C||{};var j=c.util.objId;for(var B in S)if(S.hasOwnProperty(B)){N.call(S,B,S[B],E||B);var q=S[B],L=c.util.type(q);L==="Object"&&!C[j(q)]?(C[j(q)]=!0,w(q,N,null,C)):L==="Array"&&!C[j(q)]&&(C[j(q)]=!0,w(q,N,B,C))}}},plugins:{},highlight:function(w,S,N){var E={code:w,grammar:S,language:N};if(c.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=c.tokenize(E.code,E.grammar),c.hooks.run("after-tokenize",E),f.stringify(c.util.encode(E.tokens),E.language)},tokenize:function(w,S){var N=S.rest;if(N){for(var E in N)S[E]=N[E];delete S.rest}var C=new b;return g(C,C.head,w),p(w,C,S,C.head,0),x(C)},hooks:{all:{},add:function(w,S){var N=c.hooks.all;N[w]=N[w]||[],N[w].push(S)},run:function(w,S){var N=c.hooks.all[w];if(!(!N||!N.length))for(var E=0,C;C=N[E++];)C(S)}},Token:f};function f(w,S,N,E){this.type=w,this.content=S,this.alias=N,this.length=(E||"").length|0}f.stringify=function w(S,N){if(typeof S=="string")return S;if(Array.isArray(S)){var E="";return S.forEach(function(L){E+=w(L,N)}),E}var C={type:S.type,content:w(S.content,N),tag:"span",classes:["token",S.type],attributes:{},language:N},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply(C.classes,j):C.classes.push(j)),c.hooks.run("wrap",C);var B="";for(var q in C.attributes)B+=" "+q+'="'+(C.attributes[q]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+B+">"+C.content+"</"+C.tag+">"};function h(w,S,N,E){w.lastIndex=S;var C=w.exec(N);if(C&&E&&C[1]){var j=C[1].length;C.index+=j,C[0]=C[0].slice(j)}return C}function p(w,S,N,E,C,j){for(var B in N)if(!(!N.hasOwnProperty(B)||!N[B])){var q=N[B];q=Array.isArray(q)?q:[q];for(var L=0;L<q.length;++L){if(j&&j.cause==B+","+L)return;var I=q[L],$=I.inside,G=!!I.lookbehind,M=!!I.greedy,V=I.alias;if(M&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var J=I.pattern||I,U=E.next,X=C;U!==S.tail&&!(j&&X>=j.reach);X+=U.value.length,U=U.next){var F=U.value;if(S.length>w.length)return;if(!(F instanceof f)){var O=1,z;if(M){if(z=h(J,X,w,G),!z||z.index>=w.length)break;var H=z.index,Q=z.index+z[0].length,_=X;for(_+=U.value.length;H>=_;)U=U.next,_+=U.value.length;if(_-=U.value.length,X=_,U.value instanceof f)continue;for(var D=U;D!==S.tail&&(_<Q||typeof D.value=="string");D=D.next)O++,_+=D.value.length;O--,F=w.slice(X,_),z.index-=X}else if(z=h(J,0,F,G),!z)continue;var H=z.index,A=z[0],re=F.slice(0,H),fe=F.slice(H+A.length),de=X+F.length;j&&de>j.reach&&(j.reach=de);var he=U.prev;re&&(he=g(S,he,re),X+=re.length),v(S,he,O);var ge=new f(B,$?c.tokenize(A,$):A,V,A);if(U=g(S,he,ge),fe&&g(S,U,fe),O>1){var ue={cause:B+","+L,reach:de};p(w,S,N,U.prev,X,ue),j&&ue.reach>j.reach&&(j.reach=ue.reach)}}}}}}function b(){var w={value:null,prev:null,next:null},S={value:null,prev:w,next:null};w.next=S,this.head=w,this.tail=S,this.length=0}function g(w,S,N){var E=S.next,C={value:N,prev:S,next:E};return S.next=C,E.prev=C,w.length++,C}function v(w,S,N){for(var E=S.next,C=0;C<N&&E!==w.tail;C++)E=E.next;S.next=E,E.prev=S,w.length-=C}function x(w){for(var S=[],N=w.head.next;N!==w.tail;)S.push(N.value),N=N.next;return S}return c})();r.exports=l,l.default=l}}),se=DT(OT());se.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},se.languages.markup.tag.inside["attr-value"].inside.entity=se.languages.markup.entity,se.languages.markup.doctype.inside["internal-subset"].inside=se.languages.markup,se.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(se.languages.markup.tag,"addInlined",{value:function(e,a){var l={},l=(l["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:se.languages[a]},l.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}}),a=(l["language-"+a]={pattern:/[\s\S]+/,inside:se.languages[a]},{});a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:l},se.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(se.languages.markup.tag,"addAttribute",{value:function(e,r){se.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:se.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),se.languages.html=se.languages.markup,se.languages.mathml=se.languages.markup,se.languages.svg=se.languages.markup,se.languages.xml=se.languages.extend("markup",{}),se.languages.ssml=se.languages.xml,se.languages.atom=se.languages.xml,se.languages.rss=se.languages.xml,(function(e){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},l=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a="(?:[^\\\\-]|"+l.source+")",a=RegExp(a+"-"+a),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:a,inside:{escape:l,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:l}},"special-escape":r,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:l,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":s}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(se),se.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},se.languages.javascript=se.languages.extend("clike",{"class-name":[se.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),se.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,se.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:se.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:se.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:se.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:se.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:se.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),se.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:se.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),se.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),se.languages.markup&&(se.languages.markup.tag.addInlined("script","javascript"),se.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),se.languages.js=se.languages.javascript,se.languages.actionscript=se.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),se.languages.actionscript["class-name"].alias="function",delete se.languages.actionscript.parameter,delete se.languages.actionscript["literal-property"],se.languages.markup&&se.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:se.languages.markup}}),(function(e){var r=/#(?!\{).+/,l={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:l}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:l}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:l}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript})(se),(function(e){var r=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(r,"addSupport",{value:function(l,a){(l=typeof l=="string"?[l]:l).forEach(function(s){var u=function(g){g.inside||(g.inside={}),g.inside.rest=a},c="doc-comment";if(f=e.languages[s]){var f,h=f[c];if((h=h||(f=e.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[c])instanceof RegExp&&(h=f[c]={pattern:h}),Array.isArray(h))for(var p=0,b=h.length;p<b;p++)h[p]instanceof RegExp&&(h[p]={pattern:h[p]}),u(h[p]);else u(h)}})}}),r.addSupport(["java","javascript","php"],r)})(se),(function(e){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(se),(function(e){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=r,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),l={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:l,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:l})})(se),(function(e){var r=/[*&][^\s[\]{},]+/,l=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+l.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+l.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(f,h){h=(h||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return f});return RegExp(p,h)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(u),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(se),(function(e){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function l(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,c=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:l(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:l(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:l(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:l(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(b){p!==b&&(e.languages.markdown[p].inside.content.inside[b]=e.languages.markdown[b])})}),e.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function b(g){if(g&&typeof g!="string")for(var v=0,x=g.length;v<x;v++){var w,S=g[v];S.type!=="code"?b(S.content):(w=S.content[1],S=S.content[3],w&&S&&w.type==="code-language"&&S.type==="code-block"&&typeof w.content=="string"&&(w=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),w="language-"+(w=(/[a-z][\w-]*/i.exec(w)||[""])[0].toLowerCase()),S.alias?typeof S.alias=="string"?S.alias=[S.alias,w]:S.alias.push(w):S.alias=[w]))}})(p.tokens)}),e.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var b="",g=0,v=p.classes.length;g<v;g++){var x=p.classes[g],x=/language-(.+)/.exec(x);if(x){b=x[1];break}}var w,S=e.languages[b];S?p.content=e.highlight((function(N){return N=N.replace(c,""),N=N.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,C){var j;return(C=C.toLowerCase())[0]==="#"?(j=C[1]==="x"?parseInt(C.slice(2),16):Number(C.slice(1)),h(j)):f[C]||E})})(p.content),S,b):b&&b!=="none"&&e.plugins.autoloader&&(w="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=w,e.plugins.autoloader.loadLanguages(b,function(){var N=document.getElementById(w);N&&(N.innerHTML=e.highlight(N.textContent,e.languages[b],b))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),f={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(se),se.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:se.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},se.hooks.add("after-tokenize",function(e){if(e.language==="graphql")for(var r=e.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),l=0;l<r.length;){var a=r[l++];if(a.type==="keyword"&&a.content==="mutation"){var s=[];if(g(["definition-mutation","punctuation"])&&b(1).content==="("){l+=2;var u=v(/^\($/,/^\)$/);if(u===-1)continue;for(;l<u;l++){var c=b(0);c.type==="variable"&&(x(c,"variable-input"),s.push(c.content))}l=u+1}if(g(["punctuation","property-query"])&&b(0).content==="{"&&(l++,x(b(0),"property-mutation"),0<s.length)){var f=v(/^\{$/,/^\}$/);if(f!==-1)for(var h=l;h<f;h++){var p=r[h];p.type==="variable"&&0<=s.indexOf(p.content)&&x(p,"variable-input")}}}}function b(w){return r[l+w]}function g(w,S){S=S||0;for(var N=0;N<w.length;N++){var E=b(N+S);if(!E||E.type!==w[N])return}return 1}function v(w,S){for(var N=1,E=l;E<r.length;E++){var C=r[E],j=C.content;if(C.type==="punctuation"&&typeof j=="string"){if(w.test(j))N++;else if(S.test(j)&&--N===0)return E}}return-1}function x(w,S){var N=w.alias;N?Array.isArray(N)||(w.alias=N=[N]):w.alias=N=[],N.push(S)}}),se.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var r=e.languages.javascript["template-string"],l=r.pattern.source,a=r.inside.interpolation,s=a.inside["interpolation-punctuation"],u=a.pattern.source;function c(g,v){if(e.languages[g])return{pattern:RegExp("((?:"+v+")\\s*)"+l),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}function f(g,v,x){return g={code:g,grammar:v,language:x},e.hooks.run("before-tokenize",g),g.tokens=e.tokenize(g.code,g.grammar),e.hooks.run("after-tokenize",g),g.tokens}function h(g,v,x){var N=e.tokenize(g,{interpolation:{pattern:RegExp(u),lookbehind:!0}}),w=0,S={},N=f(N.map(function(C){if(typeof C=="string")return C;for(var j,B,C=C.content;g.indexOf((B=w++,j="___"+x.toUpperCase()+"_"+B+"___"))!==-1;);return S[j]=C,j}).join(""),v,x),E=Object.keys(S);return w=0,(function C(j){for(var B=0;B<j.length;B++){if(w>=E.length)return;var q,L,I,$,G,M,V,Y=j[B];typeof Y=="string"||typeof Y.content=="string"?(q=E[w],(V=(M=typeof Y=="string"?Y:Y.content).indexOf(q))!==-1&&(++w,L=M.substring(0,V),G=S[q],I=void 0,($={})["interpolation-punctuation"]=s,($=e.tokenize(G,$)).length===3&&((I=[1,1]).push.apply(I,f($[1],e.languages.javascript,"javascript")),$.splice.apply($,I)),I=new e.Token("interpolation",$,a.alias,G),$=M.substring(V+q.length),G=[],L&&G.push(L),G.push(I),$&&(C(M=[$]),G.push.apply(G,M)),typeof Y=="string"?(j.splice.apply(j,[B,1].concat(G)),B+=G.length-1):Y.content=G)):(V=Y.content,Array.isArray(V)?C(V):C([V]))}})(N),new e.Token(x,N,"language-"+x,g)}e.languages.javascript["template-string"]=[c("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),c("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),c("svg",/\bsvg/.source),c("markdown",/\b(?:markdown|md)/.source),c("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),c("sql",/\bsql/.source),r].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function b(g){return typeof g=="string"?g:Array.isArray(g)?g.map(b).join(""):b(g.content)}e.hooks.add("after-tokenize",function(g){g.language in p&&(function v(x){for(var w=0,S=x.length;w<S;w++){var N,E,C,j=x[w];typeof j!="string"&&(N=j.content,Array.isArray(N)?j.type==="template-string"?(j=N[1],N.length===3&&typeof j!="string"&&j.type==="embedded-code"&&(E=b(j),j=j.alias,j=Array.isArray(j)?j[0]:j,C=e.languages[j])&&(N[1]=h(E,C,j))):v(N):typeof N!="string"&&v([N]))}})(g.tokens)})})(se),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var r=e.languages.extend("typescript",{});delete r["class-name"],e.languages.typescript["class-name"].inside=r,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),e.languages.ts=e.languages.typescript})(se),(function(e){var r=e.languages.javascript,l=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+l+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return l})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+l),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)})(se),(function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(se),se.languages.n4js=se.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),se.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),se.languages.n4jsd=se.languages.n4js,(function(e){function r(c,f){return RegExp(c.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var l=["function","function-variable","method","method-variable","property-access"],a=0;a<l.length;a++){var u=l[a],s=e.languages.javascript[u],u=(s=e.util.type(s)==="RegExp"?e.languages.javascript[u]={pattern:s}:s).inside||{};(s.inside=u)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(se),(function(e){var r=e.util.clone(e.languages.javascript),l=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,p){return h=h.replace(/<S>/g,function(){return l}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(h,p)}s=u(s).source,e.languages.jsx=e.languages.extend("markup",r),e.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=r.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);function c(h){for(var p=[],b=0;b<h.length;b++){var g=h[b],v=!1;typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===f(g.content[0].content[1])&&p.pop():g.content[g.content.length-1].content!=="/>"&&p.push({tagName:f(g.content[0].content[1]),openedBraces:0}):0<p.length&&g.type==="punctuation"&&g.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&g.type==="punctuation"&&g.content==="}"?p[p.length-1].openedBraces--:v=!0),(v||typeof g=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(v=f(g),b<h.length-1&&(typeof h[b+1]=="string"||h[b+1].type==="plain-text")&&(v+=f(h[b+1]),h.splice(b+1,1)),0<b&&(typeof h[b-1]=="string"||h[b-1].type==="plain-text")&&(v=f(h[b-1])+v,h.splice(b-1,1),b--),h[b]=new e.Token("plain-text",v,null,v)),g.content&&typeof g.content!="string"&&c(g.content)}}var f=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(f).join(""):""};e.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||c(h.tokens)})})(se),(function(e){var r=e.util.clone(e.languages.typescript),r=(e.languages.tsx=e.languages.extend("jsx",r),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag);r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(se),se.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},se.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=se.languages.swift}),(function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin})(se),se.languages.c=se.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),se.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),se.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},se.languages.c.string],char:se.languages.c.char,comment:se.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:se.languages.c}}}}),se.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete se.languages.c.boolean,se.languages.objectivec=se.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete se.languages.objectivec["class-name"],se.languages.objc=se.languages.objectivec,se.languages.reason=se.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),se.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete se.languages.reason.function,(function(e){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,l=0;l<2;l++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(se),se.languages.go=se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),se.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete se.languages.go["class-name"],(function(e){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,l=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return l})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(se),se.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},se.languages.python["string-interpolation"].inside.interpolation.inside.rest=se.languages.python,se.languages.py=se.languages.python,se.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},se.languages.webmanifest=se.languages.json;var wn={};RT(wn,{dracula:()=>zT,duotoneDark:()=>FT,duotoneLight:()=>UT,github:()=>qT,gruvboxMaterialDark:()=>b5,gruvboxMaterialLight:()=>x5,jettwaveDark:()=>u5,jettwaveLight:()=>f5,nightOwl:()=>$T,nightOwlLight:()=>GT,oceanicNext:()=>XT,okaidia:()=>QT,oneDark:()=>h5,oneLight:()=>m5,palenight:()=>JT,shadesOfPurple:()=>e5,synthwave84:()=>n5,ultramin:()=>l5,vsDark:()=>B0,vsLight:()=>o5});var MT={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},zT=MT,BT={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},FT=BT,IT={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},UT=IT,HT={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},qT=HT,PT={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},$T=PT,VT={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},GT=VT,xn={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},YT={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:xn.keyword}},{types:["attr-value"],style:{color:xn.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:xn.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:xn.primitive}},{types:["boolean"],style:{color:xn.boolean}},{types:["tag"],style:{color:xn.tag}},{types:["string"],style:{color:xn.string}},{types:["punctuation"],style:{color:xn.string}},{types:["selector","char","builtin","inserted"],style:{color:xn.char}},{types:["function"],style:{color:xn.function}},{types:["operator","entity","url","variable"],style:{color:xn.variable}},{types:["keyword"],style:{color:xn.keyword}},{types:["atrule","class-name"],style:{color:xn.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},XT=YT,ZT={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},QT=ZT,KT={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},JT=KT,WT={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},e5=WT,t5={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},n5=t5,r5={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},l5=r5,i5={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},B0=i5,a5={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},o5=a5,s5={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},u5=s5,c5={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},f5=c5,d5={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},h5=d5,p5={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},m5=p5,g5={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},b5=g5,y5={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},x5=y5,v5=e=>T.useCallback(r=>{var l=r,{className:a,style:s,line:u}=l,c=z0(l,["className","style","line"]);const f=yu(Kn({},c),{className:D0("token-line",a)});return typeof e=="object"&&"plain"in e&&(f.style=e.plain),typeof s=="object"&&(f.style=Kn(Kn({},f.style||{}),s)),f},[e]),w5=e=>{const r=T.useCallback(({types:l,empty:a})=>{if(e!=null){{if(l.length===1&&l[0]==="plain")return a!=null?{display:"inline-block"}:void 0;if(l.length===1&&a!=null)return e[l[0]]}return Object.assign(a!=null?{display:"inline-block"}:{},...l.map(s=>e[s]))}},[e]);return T.useCallback(l=>{var a=l,{token:s,className:u,style:c}=a,f=z0(a,["token","className","style"]);const h=yu(Kn({},f),{className:D0("token",...s.types,u),children:s.content,style:r(s)});return c!=null&&(h.style=Kn(Kn({},h.style||{}),c)),h},[r])},S5=/\r\n|\r|\n/,ix=e=>{e.length===0?e.push({types:["plain"],content:`
|
|
44
|
+
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
45
|
+
`,e[0].empty=!0)},ax=(e,r)=>{const l=e.length;return l>0&&e[l-1]===r?e:e.concat(r)},k5=e=>{const r=[[]],l=[e],a=[0],s=[e.length];let u=0,c=0,f=[];const h=[f];for(;c>-1;){for(;(u=a[c]++)<s[c];){let p,b=r[c];const v=l[c][u];if(typeof v=="string"?(b=c>0?b:["plain"],p=v):(b=ax(b,v.type),v.alias&&(b=ax(b,v.alias)),p=v.content),typeof p!="string"){c++,r.push(b),l.push(p),a.push(0),s.push(p.length);continue}const x=p.split(S5),w=x.length;f.push({types:b,content:x[0]});for(let S=1;S<w;S++)ix(f),h.push(f=[]),f.push({types:b,content:x[S]})}c--,r.pop(),l.pop(),a.pop(),s.pop()}return ix(f),h},ox=k5,E5=({prism:e,code:r,grammar:l,language:a})=>T.useMemo(()=>{if(l==null)return ox([r]);const s={code:r,grammar:l,language:a,tokens:[]};return e.hooks.run("before-tokenize",s),s.tokens=e.tokenize(r,l),e.hooks.run("after-tokenize",s),ox(s.tokens)},[r,l,a,e]),C5=(e,r)=>{const{plain:l}=e,a=e.styles.reduce((s,u)=>{const{languages:c,style:f}=u;return c&&!c.includes(r)||u.types.forEach(h=>{const p=Kn(Kn({},s[h]),f);s[h]=p}),s},{});return a.root=l,a.plain=yu(Kn({},l),{backgroundColor:void 0}),a},N5=C5,A5=({children:e,language:r,code:l,theme:a,prism:s})=>{const u=r.toLowerCase(),c=N5(a,u),f=v5(c),h=w5(c),p=s.languages[u],b=E5({prism:s,language:u,code:l,grammar:p});return e({tokens:b,className:`prism-code language-${u}`,style:c!=null?c.root:{},getLineProps:f,getTokenProps:h})},T5=e=>T.createElement(A5,yu(Kn({},e),{prism:e.prism||se,theme:e.theme||B0,code:e.code,language:e.language}));const j5="modulepreload",_5=function(e){return"/"+e},sx={},Ht=function(r,l,a){let s=Promise.resolve();if(l&&l.length>0){let h=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");s=h(l.map(p=>{if(p=_5(p),p in sx)return;sx[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":j5,b||(v.as="script"),v.crossOrigin="",v.href=p,f&&v.setAttribute("nonce",f),document.head.appendChild(v),b)return new Promise((x,w)=>{v.addEventListener("load",x),v.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return s.then(c=>{for(const f of c||[])f.status==="rejected"&&u(f.reason);return r().catch(u)})},Ns={};function F0(e){if(!Ns[e]){const l={bash:()=>Ht(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>Ht(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>Ht(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await Ht(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),Ht(()=>import("./prism-php-D6cj7Bpf.js").then(a=>a.p),[])),sql:()=>Ht(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>Ht(()=>import("./prism-ruby-DpH58Hlp.js").then(a=>a.p),[]),java:()=>Ht(()=>import("./prism-java-C8aayYea.js").then(a=>a.p),[]),scala:async()=>(await F0("java"),Ht(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>Ht(()=>import("./prism-solidity-D2vLuj19.js").then(a=>a.p),[]),vim:()=>Ht(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>Ht(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>Ht(()=>import("./prism-csharp-B9sOWZbP.js").then(a=>a.p),[]),protobuf:()=>Ht(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>Ht(()=>import("./prism-hcl-DyoEoP5U.js").then(a=>a.p),[]),perl:()=>Ht(()=>import("./prism-perl-OmnKymhn.js").then(a=>a.p),[])}[e];if(!l)return console.warn(`No loader available for language: ${e}`),Promise.reject(new Error(`Unsupported language: ${e}`));Ns[e]=l().then(()=>{}).catch(a=>{throw delete Ns[e],console.warn(`Failed to load language: ${e}`,a),a})}return Ns[e]}typeof global<"u"?global.Prism=se:typeof window<"u"&&(window.Prism=se);const ux=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function R5(e,r){const[l,a]=T.useState(()=>ux.includes(r)||!!se.languages[r]);return T.useEffect(()=>{if(!l){if(ux.includes(r)){a(!0);return}F0(r).then(()=>{a(!0)}).catch(()=>{a(!1)})}},[r,l]),{ready:l,actualLang:l?r:"text"}}const L5={js:"javascript",mjs:"javascript",cjs:"javascript",jsx:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"},D5={ts:"typescript",tsx:"tsx",mts:"typescript",cts:"typescript",js:"javascript",jsx:"jsx",mjs:"javascript",cjs:"javascript",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"},O5={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};function I0(e,r){if(e)return r[e.toLowerCase()]}function M5(e){return I0(Ja(e),L5)}function z5(e){const r=ZE(e).toLowerCase(),l=O5[r];return l||I0(Ja(e),D5)||"text"}const cx=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],fx=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function B5(e){return{...e,styles:e.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function F5(e){let r;switch(e){case"github":r=wn.github;break;case"vsLight":r=wn.vsLight;break;case"oneLight":r=wn.oneLight;break;case"gruvboxMaterialLight":r=wn.gruvboxMaterialLight;break;case"nightOwlLight":r=wn.nightOwlLight;break;case"vsDark":r=wn.vsDark;break;case"oneDark":r=wn.oneDark;break;case"gruvboxMaterialDark":r=wn.gruvboxMaterialDark;break;case"nightOwl":r=wn.nightOwl;break;case"dracula":r=wn.dracula;break;case"okaidia":r=wn.okaidia;break;default:r=wn.vsDark}return B5(r)}const Mh=Kt.memo(function({code:r,language:l,className:a,syntaxTheme:s="vsDark",filename:u="",renderToken:c,onMouseOver:f,onMouseOut:h}){const p=l||(u?z5(u):"text"),{actualLang:b}=R5(r,p),g=F5(s),v=T.useCallback(({style:x,tokens:w,getLineProps:S,getTokenProps:N})=>y.jsx("span",{className:a,style:{...x,background:"transparent",backgroundColor:"transparent"},onMouseOver:f,onMouseOut:h,children:w.map((E,C)=>y.jsx("span",{...S({line:E}),children:E.map((j,B)=>c?c(j,B,N):y.jsx("span",{...N({token:j})},B))},C))}),[a,f,h,c]);return y.jsx(T5,{code:r,language:b,theme:g,prism:se,children:v})});class U0{diff(r,l,a={}){let s;typeof a=="function"?(s=a,a={}):"callback"in a&&(s=a.callback);const u=this.castInput(r,a),c=this.castInput(l,a),f=this.removeEmpty(this.tokenize(u,a)),h=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(f,h,a,s)}diffWithOptionsObj(r,l,a,s){var u;const c=C=>{if(C=this.postProcess(C,a),s){setTimeout(function(){s(C)},0);return}else return C},f=l.length,h=r.length;let p=1,b=f+h;a.maxEditLength!=null&&(b=Math.min(b,a.maxEditLength));const g=(u=a.timeout)!==null&&u!==void 0?u:1/0,v=Date.now()+g,x=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(x[0],l,r,0,a);if(x[0].oldPos+1>=h&&w+1>=f)return c(this.buildValues(x[0].lastComponent,l,r));let S=-1/0,N=1/0;const E=()=>{for(let C=Math.max(S,-p);C<=Math.min(N,p);C+=2){let j;const B=x[C-1],q=x[C+1];B&&(x[C-1]=void 0);let L=!1;if(q){const $=q.oldPos-C;L=q&&0<=$&&$<f}const I=B&&B.oldPos+1<h;if(!L&&!I){x[C]=void 0;continue}if(!I||L&&B.oldPos<q.oldPos?j=this.addToPath(q,!0,!1,0,a):j=this.addToPath(B,!1,!0,1,a),w=this.extractCommon(j,l,r,C,a),j.oldPos+1>=h&&w+1>=f)return c(this.buildValues(j.lastComponent,l,r))||!0;x[C]=j,j.oldPos+1>=h&&(N=Math.min(N,C-1)),w+1>=f&&(S=Math.max(S,C+1))}p++};if(s)(function C(){setTimeout(function(){if(p>b||Date.now()>v)return s(void 0);E()||C()},0)})();else for(;p<=b&&Date.now()<=v;){const C=E();if(C)return C}}addToPath(r,l,a,s,u){const c=r.lastComponent;return c&&!u.oneChangePerToken&&c.added===l&&c.removed===a?{oldPos:r.oldPos+s,lastComponent:{count:c.count+1,added:l,removed:a,previousComponent:c.previousComponent}}:{oldPos:r.oldPos+s,lastComponent:{count:1,added:l,removed:a,previousComponent:c}}}extractCommon(r,l,a,s,u){const c=l.length,f=a.length;let h=r.oldPos,p=h-s,b=0;for(;p+1<c&&h+1<f&&this.equals(a[h+1],l[p+1],u);)p++,h++,b++,u.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return b&&!u.oneChangePerToken&&(r.lastComponent={count:b,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=h,p}equals(r,l,a){return a.comparator?a.comparator(r,l):r===l||!!a.ignoreCase&&r.toLowerCase()===l.toLowerCase()}removeEmpty(r){const l=[];for(let a=0;a<r.length;a++)r[a]&&l.push(r[a]);return l}castInput(r,l){return r}tokenize(r,l){return Array.from(r)}join(r){return r.join("")}postProcess(r,l){return r}get useLongestToken(){return!1}buildValues(r,l,a){const s=[];let u;for(;r;)s.push(r),u=r.previousComponent,delete r.previousComponent,r=u;s.reverse();const c=s.length;let f=0,h=0,p=0;for(;f<c;f++){const b=s[f];if(b.removed)b.value=this.join(a.slice(p,p+b.count)),p+=b.count;else{if(!b.added&&this.useLongestToken){let g=l.slice(h,h+b.count);g=g.map(function(v,x){const w=a[p+x];return w.length>v.length?w:v}),b.value=this.join(g)}else b.value=this.join(l.slice(h,h+b.count));h+=b.count,b.added||(p+=b.count)}}return s}}function dx(e,r){let l;for(l=0;l<e.length&&l<r.length;l++)if(e[l]!=r[l])return e.slice(0,l);return e.slice(0,l)}function hx(e,r){let l;if(!e||!r||e[e.length-1]!=r[r.length-1])return"";for(l=0;l<e.length&&l<r.length;l++)if(e[e.length-(l+1)]!=r[r.length-(l+1)])return e.slice(-l);return e.slice(-l)}function Zd(e,r,l){if(e.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return l+e.slice(r.length)}function Qd(e,r,l){if(!r)return e+l;if(e.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return e.slice(0,-r.length)+l}function Oa(e,r){return Zd(e,r,"")}function As(e,r){return Qd(e,r,"")}function px(e,r){return r.slice(0,I5(e,r))}function I5(e,r){let l=0;e.length>r.length&&(l=e.length-r.length);let a=r.length;e.length<r.length&&(a=e.length);const s=Array(a);let u=0;s[0]=0;for(let c=1;c<a;c++){for(r[c]==r[u]?s[c]=s[u]:s[c]=u;u>0&&r[c]!=r[u];)u=s[u];r[c]==r[u]&&u++}u=0;for(let c=l;c<e.length;c++){for(;u>0&&e[c]!=r[u];)u=s[u];e[c]==r[u]&&u++}return u}function Ma(e){let r;for(r=e.length-1;r>=0&&e[r].match(/\s/);r--);return e.substring(r+1)}function Kr(e){const r=e.match(/^\s*/);return r?r[0]:""}const mx="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",U5=new RegExp(`[${mx}]+|\\s+|[^${mx}]`,"ug");class H5 extends U0{equals(r,l,a){return a.ignoreCase&&(r=r.toLowerCase(),l=l.toLowerCase()),r.trim()===l.trim()}tokenize(r,l={}){let a;if(l.intlSegmenter){const c=l.intlSegmenter;if(c.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');a=[];for(const f of Array.from(c.segment(r))){const h=f.segment;a.length&&/\s/.test(a[a.length-1])&&/\s/.test(h)?a[a.length-1]+=h:a.push(h)}}else a=r.match(U5)||[];const s=[];let u=null;return a.forEach(c=>{/\s/.test(c)?u==null?s.push(c):s.push(s.pop()+c):u!=null&&/\s/.test(u)?s[s.length-1]==u?s.push(s.pop()+c):s.push(u+c):s.push(c),u=c}),s}join(r){return r.map((l,a)=>a==0?l:l.replace(/^\s+/,"")).join("")}postProcess(r,l){if(!r||l.oneChangePerToken)return r;let a=null,s=null,u=null;return r.forEach(c=>{c.added?s=c:c.removed?u=c:((s||u)&&gx(a,u,s,c),a=c,s=null,u=null)}),(s||u)&&gx(a,u,s,null),r}}const q5=new H5;function H0(e,r,l){return q5.diff(e,r,l)}function gx(e,r,l,a){if(r&&l){const s=Kr(r.value),u=Ma(r.value),c=Kr(l.value),f=Ma(l.value);if(e){const h=dx(s,c);e.value=Qd(e.value,c,h),r.value=Oa(r.value,h),l.value=Oa(l.value,h)}if(a){const h=hx(u,f);a.value=Zd(a.value,f,h),r.value=As(r.value,h),l.value=As(l.value,h)}}else if(l){if(e){const s=Kr(l.value);l.value=l.value.substring(s.length)}if(a){const s=Kr(a.value);a.value=a.value.substring(s.length)}}else if(e&&a){const s=Kr(a.value),u=Kr(r.value),c=Ma(r.value),f=dx(s,u);r.value=Oa(r.value,f);const h=hx(Oa(s,f),c);r.value=As(r.value,h),a.value=Zd(a.value,s,h),e.value=Qd(e.value,s,s.slice(0,s.length-h.length))}else if(a){const s=Kr(a.value),u=Ma(r.value),c=px(u,s);r.value=As(r.value,c)}else if(e){const s=Ma(e.value),u=Kr(r.value),c=px(s,u);r.value=Oa(r.value,c)}}class P5 extends U0{constructor(){super(...arguments),this.tokenize=G5}equals(r,l,a){return a.ignoreWhitespace?((!a.newlineIsToken||!r.includes(`
|
|
46
|
+
`))&&(r=r.trim()),(!a.newlineIsToken||!l.includes(`
|
|
47
|
+
`))&&(l=l.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(r.endsWith(`
|
|
48
|
+
`)&&(r=r.slice(0,-1)),l.endsWith(`
|
|
49
|
+
`)&&(l=l.slice(0,-1))),super.equals(r,l,a)}}const $5=new P5;function V5(e,r,l){return $5.diff(e,r,l)}function G5(e,r){r.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
50
|
+
`));const l=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let s=0;s<a.length;s++){const u=a[s];s%2&&!r.newlineIsToken?l[l.length-1]+=u:l.push(u)}return l}function q0(e,r){const l=H0(e,r),a=[],s=[];for(const u of l)u.added?s.push({value:u.value,type:"added"}):u.removed?a.push({value:u.value,type:"removed"}):(a.push({value:u.value,type:"unchanged"}),s.push({value:u.value,type:"unchanged"}));return{oldSegments:a,newSegments:s}}function P0(e,r){if(!e.trim()||!r.trim()||e===r)return!1;const l=H0(e,r);let a=0,s=0;for(const c of l)s+=c.value.length,!c.added&&!c.removed&&(a+=c.value.length);return a/s>=.2}function $0({onSubmit:e,onCancel:r}){const[l,a]=T.useState(""),[s,u]=T.useState(!1),c=async p=>{if(p.preventDefault(),!!l.trim()){u(!0);try{await e(l.trim()),a("")}catch(b){console.error("Failed to submit comment:",b)}finally{u(!1)}}},f=p=>{p.key==="Enter"&&(p.metaKey||p.ctrlKey)?c(p):p.key==="Escape"&&r()},h=/Macintosh|Mac OS X/.test(navigator.userAgent)?"Cmd":"Ctrl";return y.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:c,"data-empty":!l.trim(),children:[y.jsxs("div",{className:"flex items-center justify-between mb-2",children:[y.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),y.jsxs("span",{className:"text-xs text-github-text-muted",children:[h,"+Enter to submit • Escape to cancel"]})]}),y.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:l,onChange:p=>a(p.target.value),onKeyDown:f,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:s}),y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsx("button",{type:"button",onClick:r,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:s,children:"Cancel"}),y.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!l.trim()||s,children:s?"Submitting...":"Submit"})]})]})}const Xs=Kt.memo(({onMouseDown:e,onMouseUp:r,title:l="Add a comment"})=>y.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",a.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:e,onMouseUp:r,title:l,children:y.jsx(Xx,{className:"w-4 h-4"})}));Xs.displayName="CommentButton";const Y5=2,X5=100;function Z5(e){return!(e.length<Y5||e.length>X5)}function bx(e){return e.toLowerCase()}function yx(e){const r=e.trim();return r?r.match(/^\w+$/)!==null&&Z5(r):!1}const Q5=200,V0=T.createContext(void 0);function K5({children:e}){const[r,l]=T.useState(null),a=T.useRef(null),s=T.useCallback(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),u=T.useCallback(p=>{const b=p.target;if(!b.classList.contains("word-token"))return;s();const g=b.getAttribute("data-word");g&&(a.current=setTimeout(()=>{l(g)},Q5))},[s]),c=T.useCallback(()=>{s(),l(null)},[s]),f=T.useCallback(p=>r?bx(p)===bx(r):!1,[r]);T.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]);const h={highlightedWord:r,handleMouseOver:u,handleMouseOut:c,isWordHighlighted:f};return y.jsx(V0.Provider,{value:h,children:e})}function J5(){const e=T.useContext(V0);if(!e)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return e}const Ya=Kt.memo(function(r){const{handleMouseOver:l,handleMouseOut:a,isWordHighlighted:s}=J5(),u=T.useCallback((c,f,h)=>{const p=h({token:c}),b=c.content.split(/( +)/);if(b.length===1&&b[0]&&!yx(b[0]))return y.jsx("span",{...p},f);const g=b.map((v,x)=>{if(!v)return null;if(yx(v)){const w=v.trim(),S=s(w);return y.jsx("span",{className:`word-token ${S?"word-highlight":""}`,"data-word":w,children:v},`${f}-${x}`)}return y.jsx("span",{children:v},`${f}-${x}`)});return y.jsx("span",{...p,children:g},f)},[s]);return y.jsx(Mh,{...r,renderToken:u,onMouseOver:l,onMouseOut:a})}),Zs=Kt.memo(({onClick:e,title:r="Open in editor",className:l})=>y.jsx("button",{className:`absolute -right-10 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10 ${l||""}`,"data-open-in-editor-button":"true",style:{backgroundColor:"var(--color-editor-btn-bg)",color:"var(--color-editor-btn-text)",border:"1px solid var(--color-editor-btn-border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-hover-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-hover-border)"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="var(--color-editor-btn-bg)",a.currentTarget.style.borderColor="var(--color-editor-btn-border)"},onMouseDown:a=>{a.stopPropagation()},onClick:a=>{a.stopPropagation(),e(a)},title:r,children:y.jsx(hS,{className:"w-4 h-4 opacity-80"})}));Zs.displayName="OpenInEditorButton";const Kd=Kt.memo(function({segments:r,className:l=""}){const a=T.useMemo(()=>r.map((s,u)=>{const c=s.type==="added"?"word-diff-added":s.type==="removed"?"word-diff-removed":"";return y.jsx("span",{className:c,children:s.value},u)}),[r]);return y.jsx("span",{className:l,children:a})}),W5=e=>{if("isExpanded"in e&&e.isExpanded)return"bg-github-bg-tertiary/80";switch(e.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},e8=e=>{switch(e.type){case"add":return"+";case"delete":return"-";default:return" "}},G0=Kt.memo(({line:e,index:r,lineId:l,isCurrentLine:a=!1,hoveredLineIndex:s,selectedLineStyle:u,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onCommentButtonMouseDown:p,onCommentButtonMouseUp:b,onOpenInEditor:g,syntaxTheme:v,onClick:x,filename:w,diffSegments:S})=>{const N=e.newLineNumber||e.oldLineNumber,E=s===r&&N,C=a?"keyboard-cursor":"";return y.jsxs("tr",{id:l,className:`group ${W5(e)} relative ${u} ${C} cursor-pointer`,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onClick:x,children:[y.jsx("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:e.oldLineNumber||""}),y.jsxs("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[y.jsx("span",{children:e.newLineNumber||""}),E&&y.jsxs(y.Fragment,{children:[g&&y.jsx(Zs,{onClick:g}),y.jsx(Xs,{onMouseDown:p,onMouseUp:b})]})]}),y.jsx("td",{className:"p-0 w-full relative align-top",children:y.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[y.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${e.type==="add"?"text-github-accent bg-diff-addition-bg":e.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:e8(e)}),S?y.jsx(Kd,{segments:S,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ya,{code:e.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:v,filename:w})]})})]})});G0.displayName="DiffLineRow";const xx=e=>e!==void 0&&"isExpanded"in e&&e.isExpanded===!0,vx=(e,r)=>r?"bg-github-bg-tertiary/80":e?.type==="delete"?"bg-diff-deletion-bg":e?.type==="add"?"bg-diff-addition-bg":e?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function t8({chunk:e,chunkIndex:r,comments:l,onAddComment:a,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c,syntaxTheme:f,cursor:h=null,fileIndex:p=0,onLineClick:b,commentTrigger:g,onCommentTriggerHandled:v,filename:x,onOpenInEditor:w}){const[S,N]=T.useState(null),[E,C]=T.useState(null),[j,B]=T.useState(!1),[q,L]=T.useState(null),[I,$]=T.useState(null);T.useEffect(()=>{if(g?.lineIndex!==void 0){const O=e.lines[g.lineIndex];if(O&&O.type!=="delete"){const z=O.newLineNumber;z&&(L({side:"new",lineNumber:z}),v?.())}}},[g,e.lines,v]),T.useEffect(()=>{if(j){const O=()=>{B(!1),N(null),C(null)};return document.addEventListener("mouseup",O),()=>{document.removeEventListener("mouseup",O)}}},[j]);const G=T.useCallback((O,z)=>{q?.side===O&&q?.lineNumber===z?L(null):L({side:O,lineNumber:z})},[q]),M=T.useCallback(()=>{L(null)},[]),V=T.useCallback(async O=>{q!==null&&(await a(q.lineNumber,O,void 0,q.side),L(null))},[q,a]),Y=(O,z)=>l.filter(Q=>{const _=Array.isArray(Q.line)?Q.line[1]===O:Q.line===O,D=!Q.side||Q.side===z;return _&&D}),J=O=>O.oldLine?.type==="delete"&&O.newLine?.type==="add"?O.newLineNumber?"right":"left":O.oldLine?.type==="delete"?"left":O.newLine?.type==="add"?"right":"full",U=(O,z)=>{const Q=O==="old"?z.oldLineNumber:z.newLineNumber;if(!Q)return"";if(j&&S&&E&&S.side===O&&E.side===O){const _=Math.min(S.lineNumber,E.lineNumber),D=Math.max(S.lineNumber,E.lineNumber);if(Q>=_&&Q<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return Q===_&&(H+=" after:border-t-2"),Q===D&&(H+=" after:border-b-2"),H}}if(q&&q.side===O){const _=Array.isArray(q.lineNumber)?q.lineNumber:[q.lineNumber,q.lineNumber],D=_[0],H=_[1];if(D!==void 0&&H!==void 0&&Q>=D&&Q<=H)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},X=T.useCallback(O=>{const z=[];let Q=e.oldStart,_=e.newStart,D=0;for(;D<O.length;){const H=O[D];if(!H){D++;continue}if(H.type==="normal")z.push({oldLine:H,newLine:{...H},oldLineNumber:H.oldLineNumber??Q,newLineNumber:H.newLineNumber??_,oldLineOriginalIndex:D,newLineOriginalIndex:D}),Q++,_++,D++;else if(H.type==="delete"){let A=D+1;for(;A<O.length&&O[A]?.type==="delete";)A++;const re=O.slice(D,A),fe=D,de=[],he=A;for(;A<O.length&&O[A]?.type==="add";){const ue=O[A];ue&&de.push(ue),A++}const ge=Math.max(re.length,de.length);for(let ue=0;ue<ge;ue++){const xe=re[ue],be=de[ue];let ye;xe&&be&&P0(xe.content,be.content)&&(ye=q0(xe.content,be.content)),z.push({oldLine:xe,newLine:be,oldLineNumber:xe?xe.oldLineNumber??Q+ue:void 0,newLineNumber:be?be.newLineNumber??_+ue:void 0,oldLineOriginalIndex:xe?fe+ue:void 0,newLineOriginalIndex:be?he+ue:void 0,wordLevelDiff:ye})}Q+=re.length,_+=de.length,D=A}else H.type==="add"&&(z.push({newLine:H,newLineNumber:H.newLineNumber??_,newLineOriginalIndex:D}),_++,D++)}return z},[e.oldStart,e.newStart]),F=T.useMemo(()=>X(e.lines),[e.lines,X]);return y.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:F.map((O,z)=>{const Q=O.oldLineNumber?Y(O.oldLineNumber,"old"):[],_=O.newLineNumber?Y(O.newLineNumber,"new"):[],D=[...Q,..._],H=O.oldLineOriginalIndex??-1,A=O.newLineOriginalIndex??-1,re=h?h.side==="left"&&H>=0?h.chunkIndex===r&&h.lineIndex===H:h.side==="right"&&A>=0?h.chunkIndex===r&&h.lineIndex===A:!1:!1,fe=H>=0?`file-${p}-chunk-${r}-line-${H}-left`:void 0,de=A>=0?`file-${p}-chunk-${r}-line-${A}-right`:void 0,he=re&&h?.side==="left",ge=re&&h?.side==="right",ue="keyboard-cursor";return y.jsxs(Kt.Fragment,{children:[y.jsxs("tr",{className:"group cursor-pointer",onClick:xe=>{if(!j){const be=xe.target,ye=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),ke=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");ye&&H>=0?b?.(p,r,H,"left"):ke&&A>=0&&b?.(p,r,A,"right")}},onMouseEnter:xe=>{const be=xe.target,ye=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),ke=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");ye&&O.oldLineNumber?$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&$({side:"new",lineNumber:O.newLineNumber})},onMouseMove:xe=>{const be=xe.target,ye=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),ke=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");ye&&O.oldLineNumber?(I?.side!=="old"||I?.lineNumber!==O.oldLineNumber)&&$({side:"old",lineNumber:O.oldLineNumber}):ke&&O.newLineNumber&&(I?.side!=="new"||I?.lineNumber!==O.newLineNumber)&&$({side:"new",lineNumber:O.newLineNumber}),j&&S&&(S.side==="old"&&O.oldLineNumber?C({side:"old",lineNumber:O.oldLineNumber}):S.side==="new"&&O.newLineNumber&&C({side:"new",lineNumber:O.newLineNumber}))},onMouseLeave:()=>$(null),children:[y.jsxs("td",{id:fe,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${he?ue:""}`,children:[y.jsx("span",{children:O.oldLineNumber||""}),I?.side==="old"&&I?.lineNumber===O.oldLineNumber&&y.jsxs(y.Fragment,{children:[w&&O.oldLine?.type!=="delete"&&O.newLineNumber!==void 0&&y.jsx(Zs,{onClick:()=>{const xe=O.newLineNumber;!x||xe===void 0||w(x,xe)}}),y.jsx(Xs,{onMouseDown:xe=>{xe.stopPropagation(),O.oldLineNumber&&(N({side:"old",lineNumber:O.oldLineNumber}),C({side:"old",lineNumber:O.oldLineNumber}),B(!0))},onMouseUp:xe=>{if(xe.stopPropagation(),!O.oldLineNumber||!S){B(!1),N(null),C(null);return}const be=E&&E.side==="old"?E.lineNumber:O.oldLineNumber;if(S.side!=="old"||S.lineNumber===be)G("old",O.oldLineNumber);else{const ye=Math.min(S.lineNumber,be),ke=Math.max(S.lineNumber,be);G("old",[ye,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${vx(O.oldLine,xx(O.oldLine))} ${U("old",O)} ${he?ue:""}`,children:O.oldLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ya,{code:O.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})}),y.jsxs("td",{id:de,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ge?ue:""}`,children:[y.jsx("span",{children:O.newLineNumber||""}),I?.side==="new"&&I?.lineNumber===O.newLineNumber&&y.jsxs(y.Fragment,{children:[w&&y.jsx(Zs,{onClick:()=>{const xe=O.newLineNumber;!x||xe===void 0||w(x,xe)}}),y.jsx(Xs,{onMouseDown:xe=>{xe.stopPropagation(),O.newLineNumber&&(N({side:"new",lineNumber:O.newLineNumber}),C({side:"new",lineNumber:O.newLineNumber}),B(!0))},onMouseUp:xe=>{if(xe.stopPropagation(),!O.newLineNumber||!S){B(!1),N(null),C(null);return}const be=E&&E.side==="new"?E.lineNumber:O.newLineNumber;if(S.side!=="new"||S.lineNumber===be)G("new",O.newLineNumber);else{const ye=Math.min(S.lineNumber,be),ke=Math.max(S.lineNumber,be);G("new",[ye,ke])}B(!1),N(null),C(null)}})]})]}),y.jsx("td",{className:`w-1/2 p-0 align-top relative ${vx(O.newLine,xx(O.newLine))} ${U("new",O)} ${ge?ue:""}`,children:O.newLine&&y.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:O.wordLevelDiff?y.jsx(Kd,{segments:O.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):y.jsx(Ya,{code:O.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:f,filename:x})})})]}),D.length>0&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:D.map(xe=>{const be=xe.side||"new";let ye;return be==="old"&&O.oldLineNumber?ye="left":be==="new"&&O.newLineNumber?ye="right":ye=J(O),y.jsx("div",{className:`flex ${ye==="left"?"justify-start":ye==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${ye==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:xe,onGeneratePrompt:s,onRemoveComment:u,onUpdateComment:c})})},xe.id)})})}),q&&(q.side==="old"&&q.lineNumber===O.oldLineNumber||q.side==="new"&&q.lineNumber===O.newLineNumber||Array.isArray(q.lineNumber)&&(q.side==="new"&&q.lineNumber[1]===O.newLineNumber||q.side==="old"&&q.lineNumber[1]===O.oldLineNumber))&&y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:4,className:"p-0",children:y.jsx("div",{className:`flex ${q.side==="old"?"justify-start":q.side==="new"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:"w-1/2",children:y.jsx($0,{onSubmit:V,onCancel:M})})})})})]},z)})})})})}const n8=T.memo(function({chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,mode:h=Za,syntaxTheme:p,cursor:b=null,fileIndex:g=0,onLineClick:v,commentTrigger:x,onCommentTriggerHandled:w,filename:S,onOpenInEditor:N}){const[E,C]=T.useState(null),[j,B]=T.useState(null),[q,L]=T.useState(!1),[I,$]=T.useState(null),[G,M]=T.useState(null);T.useEffect(()=>{if(x?.lineIndex!==void 0){const z=r.lines[x.lineIndex];if(z){const Q=z.newLineNumber||z.oldLineNumber,_=z.type==="delete"?"old":"new";Q&&($({side:_,lineNumber:Q}),w?.())}}},[x,r.lines,w]),T.useEffect(()=>{if(q){const z=()=>{L(!1),C(null),B(null)};return document.addEventListener("mouseup",z),()=>{document.removeEventListener("mouseup",z)}}},[q]);const V=T.useCallback((z,Q)=>{I?.side===z&&I?.lineNumber===Q?$(null):$({side:z,lineNumber:Q})},[I]),Y=T.useCallback(()=>{$(null)},[]),J=T.useCallback(async z=>{I!==null&&(await s(I.lineNumber,z,void 0,I.side),$(null))},[I,s]),U=(z,Q)=>a.filter(_=>{const D=Array.isArray(_.line)?_.line[1]===z:_.line===z,H=!_.side||_.side===Q;return D&&H}),X=z=>{if(h==="unified")return"full";switch(z.type){case"delete":return"left";case"add":return"right";default:return"full"}},F=(z,Q)=>{if(!z)return"";if(q&&E&&j){const _=Math.min(E,j),D=Math.max(E,j);if(z>=_&&z<=D){let H="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return z===_&&(H+=" after:border-t-2"),z===D&&(H+=" after:border-b-2"),H}}if(I&&I.side===Q){const _=Array.isArray(I.lineNumber)?I.lineNumber[0]:I.lineNumber,D=Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber;if(z>=_&&z<=D)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},O=T.useMemo(()=>{const z=new Map,Q=r.lines;let _=0;for(;_<Q.length;){const D=Q[_];if(!D){_++;continue}if(D.type==="delete"){let H=_+1;for(;H<Q.length&&Q[H]?.type==="delete";)H++;const A=Q.slice(_,H),re=_,fe=[];for(;H<Q.length&&Q[H]?.type==="add";){const he=Q[H];he&&fe.push({line:he,index:H}),H++}const de=Math.max(A.length,fe.length);for(let he=0;he<de;he++){const ge=A[he],ue=fe[he];if(ge&&ue&&P0(ge.content,ue.line.content)){const xe=q0(ge.content,ue.line.content);z.set(re+he,xe.oldSegments),z.set(ue.index,xe.newSegments)}}_=H}else _++}return z},[r.lines]);return h==="split"?y.jsx(t8,{chunk:r,chunkIndex:l,comments:a,onAddComment:s,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f,onOpenInEditor:N,syntaxTheme:p,cursor:b,fileIndex:g,onLineClick:v,filename:S,commentTrigger:x,onCommentTriggerHandled:w}):y.jsx("div",{className:"bg-github-bg-primary",children:y.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:y.jsx("tbody",{children:r.lines.map((z,Q)=>{const _=z.newLineNumber||z.oldLineNumber||0,D=z.type==="delete"?"old":"new",H=I?Array.isArray(I.lineNumber)?I.lineNumber[1]:I.lineNumber:null,A=z.type==="delete"?z.oldLineNumber:z.newLineNumber,re=z.type==="delete"?"old":"new",fe=A?U(A,re):[],de=`file-${g}-chunk-${l}-line-${Q}`,he=b&&b.chunkIndex===l&&b.lineIndex===Q;return y.jsxs(Kt.Fragment,{children:[y.jsx(G0,{line:z,index:Q,lineId:de,isCurrentLine:he||!1,hoveredLineIndex:G,selectedLineStyle:F(z.newLineNumber||z.oldLineNumber,z.type==="delete"?"old":"new"),onMouseEnter:()=>{M(Q)},onMouseLeave:()=>M(null),onMouseMove:()=>{if(q&&E){const ge=z.newLineNumber||z.oldLineNumber;ge&&B(ge)}},onCommentButtonMouseDown:ge=>{ge.stopPropagation();const ue=z.newLineNumber||z.oldLineNumber;ue&&(C(ue),B(ue),L(!0))},onCommentButtonMouseUp:ge=>{ge.stopPropagation();const ue=z.newLineNumber||z.oldLineNumber,xe=z.type==="delete"?"old":"new";if(!ue||!E){L(!1),C(null),B(null);return}const be=j||ue;if(E===be)V(xe,ue);else{const ye=Math.min(E,be),ke=Math.max(E,be);V(xe,[ye,ke])}L(!1),C(null),B(null)},onOpenInEditor:N&&z.type!=="delete"&&(z.newLineNumber||z.oldLineNumber)?()=>{const ge=z.newLineNumber||z.oldLineNumber;ge&&S&&N(S,ge)}:void 0,syntaxTheme:p,filename:S,diffSegments:O.get(Q),onClick:()=>{const ge=z.type==="delete"?"left":"right";v?.(g,l,Q,ge)}}),fe.map(ge=>{const ue=X(z);return y.jsx("tr",{className:"bg-github-bg-secondary",children:y.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:y.jsx("div",{className:`flex ${ue==="left"?"justify-start":ue==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${ue==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:y.jsx(ah,{comment:ge,onGeneratePrompt:u,onRemoveComment:c,onUpdateComment:f})})})})},ge.id)}),I&&I.side===D&&H===_&&y.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:y.jsx("td",{colSpan:3,className:"p-0",children:y.jsx("div",{className:`flex ${X(z)==="left"?"justify-start":X(z)==="right"?"justify-end":"justify-center"}`,children:y.jsx("div",{className:`${X(z)==="full"?"w-full":"w-1/2"}`,children:y.jsx($0,{onSubmit:J,onCancel:Y})})})})})]},Q)})})})})}),ud=20,cd=T.memo(function({direction:r,hiddenLines:l,onExpandUp:a,onExpandDown:s,onExpandAll:u,isLoading:c=!1}){if(l<=0)return null;const f=`${l} ${l===1?"line":"lines"}`,h=l<=ud,p="grid-cols-[var(--line-number-width)_1fr]",b="flex flex-1 w-full items-center justify-center py-1 text-github-text-primary hover:bg-github-bg-secondary hover:text-github-text-muted transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",g=[];return h?g.push({key:"all",onClick:u,ariaLabel:`Expand all ${l} hidden lines`,icon:y.jsx(XS,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&g.push({key:"up",onClick:a,ariaLabel:`Expand ${ud} hidden lines above`,icon:y.jsx(K2,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&g.push({key:"down",onClick:s,ariaLabel:`Expand ${ud} hidden lines below`,icon:y.jsx(Z2,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),y.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${p}`,children:[y.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:c?y.jsx(_S,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):g.map(v=>y.jsx("button",{type:"button",onClick:v.onClick,disabled:c||!v.onClick,className:b,title:v.ariaLabel,"aria-label":v.ariaLabel,children:v.icon},v.key))}),y.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:f})]})});function Qs({file:e,comments:r,diffMode:l,syntaxTheme:a,cursor:s,fileIndex:u,mergedChunks:c,isExpandLoading:f,expandHiddenLines:h,expandAllBetweenChunks:p,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onLineClick:w,onOpenInEditor:S,commentTrigger:N,onCommentTriggerHandled:E}){const C=(j,B,q,L)=>j==="top"&&B.hiddenLinesBefore>0?y.jsx(cd,{direction:"down",hiddenLines:B.hiddenLinesBefore,onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="middle"&&B.hiddenLinesBefore>0?y.jsx(cd,{direction:"both",hiddenLines:B.hiddenLinesBefore,onExpandUp:()=>h(e,q-1,"down"),onExpandDown:()=>h(e,q,"up"),onExpandAll:()=>p(e,q,B.hiddenLinesBefore),isLoading:f}):j==="bottom"&&B.hiddenLinesAfter>0?y.jsx(cd,{direction:"up",hiddenLines:B.hiddenLinesAfter,onExpandUp:()=>h(e,L,"down"),onExpandAll:()=>h(e,L,"down",B.hiddenLinesAfter),isLoading:f}):null;return y.jsx(y.Fragment,{children:c.map((j,B)=>{const q=B===0,L=B===c.length-1,I=j.originalIndices[0]??0,$=j.originalIndices[j.originalIndices.length-1]??0;return y.jsxs(Kt.Fragment,{children:[q&&C("top",j,I,$),!q&&C("middle",j,I,$),y.jsx("div",{id:`chunk-${e.path.replace(/[^a-zA-Z0-9]/g,"-")}-${B}`,children:y.jsx(n8,{chunk:j,chunkIndex:B,comments:r,onAddComment:b,onGeneratePrompt:g,onRemoveComment:v,onUpdateComment:x,onOpenInEditor:S,mode:l,syntaxTheme:a,cursor:s&&s.chunkIndex===B?s:null,fileIndex:u,onLineClick:w,commentTrigger:N&&N.chunkIndex===B?N:null,onCommentTriggerHandled:E,filename:e.path})}),L&&C("bottom",j,I,$)]},B)})})}const Ei=["text-[26px] font-semibold","text-[22px] font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold uppercase tracking-wide","text-base font-semibold"],r8=e=>e.type==="delete"||e.type==="remove",l8=e=>e.type==="normal"||e.type==="context",Ks=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),Jd=(e,r,l)=>{const a=e[e.length-1];if(a&&a.type===r){a.lines.push(l);return}e.push({type:r,lines:[l]})},fd=(e,r)=>{r.forEach(l=>Jd(e,"delete",l)),r.length=0},i8=e=>{const r=[],l=[];let a=!1;return e.forEach(s=>{s.lines.forEach(u=>{if(!(u.type==="header"||u.type==="hunk")){if(r8(u)){l.push(u.content);return}if(u.type==="add"){l.length>0&&(fd(r,l),a=!0),Jd(r,a?"change":"add",u.content);return}l8(u)&&(fd(r,l),a=!1,Jd(r,"context",u.content))}}),fd(r,l),a=!1}),r},a8=e=>Kt.isValidElement(e),o8=e=>Kt.isValidElement(e),Wd=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(Wd).join(""):a8(e)?Wd(e.props.children):"",Y0=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Ei[0]} mt-6 mb-2 first:mt-0`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Ei[1]} mt-6 mb-2 first:mt-0`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Ei[2]} mt-6 mb-2 first:mt-0`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Ei[3]} mt-6 mb-2 first:mt-0`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Ei[4]} mt-6 mb-2 first:mt-0`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Ei[5]} mt-6 mb-2 first:mt-0`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-base leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-base space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-base space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!Ks(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!Ks(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(o8),s=Wd(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary"})}):y.jsx("pre",{className:"markdown-preview-code border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-sm",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-sm font-mono",children:l})}),s8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},u8=e=>/^\s*\[[^\]]+\]:\s+\S+/.test(e),c8=e=>/^\s*\[\^[^\]]+\]:\s+/.test(e),f8=e=>/^\s*<!--.*-->\s*$/.test(e),d8=e=>e.trim()===""||u8(e)||c8(e)||f8(e),h8=e=>e.every(d8),p8=({blocks:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Y0(r),[r]);return y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const c=a.lines.join(`
|
|
51
|
+
`).trim();if(!c)return null;const f=h8(a.lines);return y.jsx("div",{className:`px-4 ${s8(a.type)}`,children:f?y.jsx("pre",{className:"whitespace-pre-wrap text-sm text-github-text-primary font-mono",children:c}):y.jsx(jh,{remarkPlugins:[Dh],urlTransform:h=>Ks(h)?h:"",components:l,children:c})},`preview-block-${s}`)})})},m8=({content:e,syntaxTheme:r})=>{const l=T.useMemo(()=>Y0(r),[r]);return y.jsx("div",{className:"space-y-4",children:y.jsx(jh,{remarkPlugins:[Dh],urlTransform:a=>Ks(a)?a:"",components:l,children:e})})};function g8(e){const{file:r,baseCommitish:l,targetCommitish:a,mergedChunks:s,syntaxTheme:u}=e,[c,f]=T.useState("diff-preview"),[h,p]=T.useState(null),[b,g]=T.useState(!1),[v,x]=T.useState(null),[w,S]=T.useState(null),N=T.useMemo(()=>i8(s),[s]),E=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.path,r.oldPath,r.status]),C=T.useMemo(()=>E?`${E.ref}:${E.path}`:null,[E]);return T.useEffect(()=>{if(c!=="full-preview")return;if(!E||!C){p(null),S(null),x(null),g(!1);return}let j=!1;return(C!==w||!h)&&(async()=>{C!==w&&p(null),g(!0),x(null);try{const q=encodeURIComponent(E.path),L=await fetch(`/api/blob/${q}?ref=${encodeURIComponent(E.ref)}`);if(!L.ok)throw new Error(`Failed to fetch preview: ${L.statusText}`);const I=await L.text();j||(p(I),S(C))}catch(q){j||(p(null),S(null),x(q instanceof Error?q.message:"Failed to load preview"))}finally{j||g(!1)}})(),()=>{j=!0}},[h,w,c,E,C]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>f("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(eu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>f("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Rs,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>f("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${c==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Rs,{size:14}),"Full Preview"]})]})}),c==="diff"&&y.jsx(Qs,{...e}),c==="diff-preview"&&y.jsx("div",{className:"p-4",children:y.jsx(p8,{blocks:N,syntaxTheme:u})}),c==="full-preview"&&y.jsxs("div",{className:"p-4",children:[b&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),v&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:v}),!b&&!v&&h&&y.jsx(m8,{content:h,syntaxTheme:u}),!b&&!v&&!h&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const Ci=["text-2xl font-semibold","text-xl font-semibold","text-lg font-semibold","text-base font-semibold","text-sm font-semibold uppercase tracking-wide","text-sm font-semibold"],X0={markdown:"Markdown",code:"Code",raw:"Raw",unknown:"Cell"},b8=/"cell_type"\s*:\s*"([^"]+)"/,wx=/"source"\s*:/,y8=/"execution_count"\s*:\s*(null|[0-9]+)/,x8=/"id"\s*:\s*"([^"]+)"/,v8=e=>e.type==="delete"||e.type==="remove",w8=e=>e.type==="normal"||e.type==="context",Z0=e=>e.type==="add"?"add":v8(e)?"delete":w8(e)?"context":null,Q0=e=>e==="markdown"||e==="code"||e==="raw"?e:"unknown",S8=e=>{const r=e.trim();if(!r.startsWith('"'))return null;let l=r;l.endsWith(",")&&(l=l.slice(0,-1));try{const a=JSON.parse(l);return typeof a=="string"?a:null}catch{return l.replace(/^"/,"").replace(/"$/,"").replace(/\\n/g,`
|
|
52
|
+
`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}},k8=e=>{const r=e.indexOf('"source"');if(r===-1)return null;const l=e.indexOf(":",r);if(l===-1)return null;let a=e.slice(l+1).trim();if(!a)return null;if(a.endsWith(",")&&(a=a.slice(0,-1).trim()),a.startsWith("[")){const s=a.lastIndexOf("]");if(s===-1)return null;const u=a.slice(0,s+1);try{const c=JSON.parse(u);if(Array.isArray(c))return c.filter(f=>typeof f=="string")}catch{return null}return[]}if(a.startsWith('"'))try{const s=JSON.parse(a);return typeof s=="string"?[s]:null}catch{return null}return null},E8=e=>{const r=C8(e);if(r)return r;const l=[];let a=null,s=!1,u=!1,c=!1;const f=()=>{a&&(a.status=s&&u?"change":s?"add":u?"delete":"context",l.push(a),a=null,s=!1,u=!1,c=!1)},h=p=>{f(),a={cellType:p,sourceLines:[],status:"context"}};return e.forEach(p=>{p.lines.forEach(b=>{const g=Z0(b);if(!g)return;const v=b.content.match(b8);if(v?h(Q0(v[1]??"")):!a&&wx.test(b.content)&&h("unknown"),!a)return;if(g==="add"&&(s=!0),g==="delete"&&(u=!0),!a.id){const S=b.content.match(x8);S&&(a.id=S[1])}if(a.executionCount===void 0){const S=b.content.match(y8);S&&(a.executionCount=S[1]==="null"?null:S[1])}if(wx.test(b.content)){const S=k8(b.content);if(S){S.forEach(N=>{a?.sourceLines.push({type:g,content:N})}),c=!1;return}c=!0;return}if(!c)return;if(b.content.trim().startsWith("]")){c=!1;return}const w=S8(b.content);w!==null&&a.sourceLines.push({type:g,content:w})})}),f(),{cells:l}},C8=e=>{const r=Sx(e,["add","context"]),l=Sx(e,["delete","context"]),a=Ha(r),s=Ha(l);if(!a&&!s||a&&a.cells.length===0&&!s)return null;const u=a?.language??s?.language;return{cells:K0(s?.cells??[],a?.cells??[]),language:u}},Sx=(e,r)=>e.flatMap(l=>l.lines).map(l=>{const a=Z0(l);return!a||!r.includes(a)?null:l.content}).filter(l=>l!==null).join(`
|
|
53
|
+
`),Ha=e=>{if(!e.trim())return null;try{const r=JSON.parse(e);if(!r||typeof r!="object"||!("cells"in r))return null;const l=r.cells;if(!Array.isArray(l))return null;const a=r.metadata,s=N8(a);return{cells:l.map(u=>A8(u)),language:s}}catch{return null}},N8=e=>{if(!e||typeof e!="object")return;const r=e,l=r.language_info;if(l&&typeof l=="object"){const s=l.name;if(typeof s=="string"&&s.trim())return s}const a=r.kernelspec;if(a&&typeof a=="object"){const s=a.language;if(typeof s=="string"&&s.trim())return s}},A8=e=>{const r=typeof e=="object"&&e?e:{},l=typeof r.cell_type=="string"?r.cell_type:"",a=Q0(l),s=typeof r.id=="string"?r.id:void 0,u=r.execution_count,c=u===null?null:typeof u=="number"?String(u):typeof u=="string"?u:void 0,f=T8(r.source);return{cellType:a,sourceText:f,id:s,executionCount:c}},T8=e=>typeof e=="string"?e:Array.isArray(e)?e.filter(r=>typeof r=="string").join(""):"",K0=(e,r)=>{const l=[];if(e.some(u=>!!u.id)||r.some(u=>!!u.id)){const u=new Map;e.forEach((f,h)=>{f.id&&u.set(f.id,{cell:f,index:h})});const c=new Set;return r.forEach(f=>{const h=f.id?u.get(f.id):void 0;h&&c.add(h.index),l.push(dd(h?.cell??null,f))}),e.forEach((f,h)=>{c.has(h)||l.push(dd(f,null))}),l}const s=Math.max(e.length,r.length);for(let u=0;u<s;u+=1){const c=e[u]??null,f=r[u]??null;l.push(dd(c,f))}return l},dd=(e,r)=>{if(!r&&e)return{cellType:e.cellType,sourceLines:za(e.sourceText,"delete"),status:"delete",id:e.id,executionCount:e.executionCount};if(r&&!e)return{cellType:r.cellType,sourceLines:za(r.sourceText,"add"),status:"add",id:r.id,executionCount:r.executionCount};const l=e?.sourceText??"",a=r?.sourceText??"",s=r?.cellType??e?.cellType??"unknown",u=r?.id??e?.id,c=r?.executionCount??e?.executionCount;return l===a&&(e?.cellType??"")===(r?.cellType??"")?{cellType:s,sourceLines:za(a,"context"),status:"context",id:u,executionCount:c}:{cellType:s,sourceLines:[...za(l,"delete"),...za(a,"add")],status:"change",id:u,executionCount:c}},za=(e,r)=>e?[{type:r,content:e}]:[],hd=e=>!!(e&&e!=="stdin"),pd=async(e,r)=>{const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);return a.ok?a.text():null},Oi=(e,r)=>e.filter(l=>r.includes(l.type)).map(l=>l.content).join(""),md=e=>{if(!e)return[];const r=e.split(`
|
|
54
|
+
`);return r.length>0&&r[r.length-1]===""&&r.pop(),r},J0=(e,r)=>!e&&!r?[]:e?r?V5(e,r).flatMap(l=>{const a=l.added?"add":l.removed?"delete":"context";return md(l.value).map(s=>({type:a,content:s}))}):md(e).map(l=>({type:"delete",content:l})):md(r).map(l=>({type:"add",content:l})),j8=e=>Kt.isValidElement(e),_8=e=>Kt.isValidElement(e),eh=e=>e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(eh).join(""):j8(e)?eh(e.props.children):"",R8=e=>{switch(e){case"add":return"border-l-4 border-diff-addition-border";case"delete":return"border-l-4 border-diff-deletion-border";case"change":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},kx=e=>{switch(e){case"before":return"border-l-4 border-diff-deletion-border";case"after":return"border-l-4 border-diff-addition-border";default:return"border-l-4 border-transparent"}},L8=e=>{switch(e){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},D8=e=>{switch(e){case"add":return"+";case"delete":return"-";default:return" "}},O8=e=>{switch(e){case"add":return"text-github-accent";case"delete":return"text-github-danger";default:return"text-github-text-muted"}},th=e=>/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim()),M8=e=>({h1:({children:r})=>y.jsx("h1",{className:`${Ci[0]} mb-2`,children:r}),h2:({children:r})=>y.jsx("h2",{className:`${Ci[1]} mb-2`,children:r}),h3:({children:r})=>y.jsx("h3",{className:`${Ci[2]} mb-2`,children:r}),h4:({children:r})=>y.jsx("h4",{className:`${Ci[3]} mb-2`,children:r}),h5:({children:r})=>y.jsx("h5",{className:`${Ci[4]} mb-2`,children:r}),h6:({children:r})=>y.jsx("h6",{className:`${Ci[5]} mb-2`,children:r}),p:({children:r})=>y.jsx("p",{className:"text-sm leading-7",children:r}),ul:({children:r})=>y.jsx("ul",{className:"list-disc pl-6 text-sm space-y-1",children:r}),ol:({children:r})=>y.jsx("ol",{className:"list-decimal pl-6 text-sm space-y-1",children:r}),li:({children:r})=>y.jsx("li",{children:r}),blockquote:({children:r})=>y.jsx("blockquote",{className:"border-l-4 border-github-border pl-4 text-github-text-muted italic",children:r}),hr:()=>y.jsx("hr",{className:"border-github-border"}),a:({href:r,children:l})=>{const a=r??"";if(!a||!th(a))return y.jsx("span",{children:l});const s=a.startsWith("http");return y.jsx("a",{href:a,target:s?"_blank":void 0,rel:s?"noreferrer":void 0,className:"text-sky-400 hover:text-sky-300 underline underline-offset-4",children:l})},img:({src:r,alt:l})=>{const a=r??"";return!a||!th(a)?null:y.jsx("img",{src:a,alt:l??"",loading:"lazy",className:"max-w-full rounded border border-github-border"})},pre:({children:r})=>{const a=(Array.isArray(r)?r:[r]).find(_8),s=eh(a??r),c=/language-(\S+)/.exec(a?.props.className??"")?.[1];return s.trim()?y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:y.jsx(Mh,{code:s.replace(/\n$/,""),language:c,syntaxTheme:e,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})}):y.jsx("pre",{className:"border border-github-border bg-github-bg-secondary p-3 overflow-x-auto text-xs",children:r})},code:({className:r,children:l})=>r?y.jsx("code",{className:r,children:l}):y.jsx("code",{className:"px-1 py-0.5 rounded bg-github-bg-tertiary border border-github-border text-xs font-mono",children:l}),table:({children:r})=>y.jsx("div",{className:"overflow-x-auto",children:y.jsx("table",{className:"min-w-full border border-github-border",children:r})}),th:({children:r})=>y.jsx("th",{className:"border border-github-border px-2 py-1 bg-github-bg-tertiary text-sm",children:r}),td:({children:r})=>y.jsx("td",{className:"border border-github-border px-2 py-1 text-sm",children:r})}),z8=e=>{const r=Oi(e.sourceLines,["context","delete"]),l=Oi(e.sourceLines,["context","add"]),a=[];return e.status==="change"?(r.trim()&&a.push({label:"Before",content:r,tone:"before"}),l.trim()&&a.push({label:"After",content:l,tone:"after"}),a.length===0&&a.push({label:"After",content:l,tone:"after"}),a):e.status==="delete"?(a.push({label:"Before",content:r||l,tone:"before"}),a):(a.push({label:"After",content:l||r,tone:"after"}),a)},W0=(e,r,l,a)=>{if(!r.trim())return y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"});if(e==="markdown"){const s=M8(l);return y.jsx(jh,{remarkPlugins:[Dh],urlTransform:u=>th(u)?u:"",components:s,children:r})}return e==="raw"?y.jsx("pre",{className:"whitespace-pre-wrap break-words text-xs font-mono text-github-text-primary",children:r}):y.jsx("pre",{className:"overflow-x-auto text-xs",children:y.jsx(Ya,{code:r.replace(/\n$/,""),language:a||"python",syntaxTheme:l,className:"font-mono text-github-text-primary [&_.token-line]:block [&_.token-line]:whitespace-pre"})})},B8=({lines:e,syntaxTheme:r,language:l})=>e.length===0?y.jsx("span",{className:"text-xs text-github-text-muted",children:"Empty cell"}):y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"font-mono text-xs",children:e.map((a,s)=>y.jsxs("div",{className:`flex items-start min-h-[16px] ${L8(a.type)}`,children:[y.jsx("span",{className:`w-5 text-center flex-shrink-0 select-none ${O8(a.type)}`,children:D8(a.type)}),y.jsx(Ya,{code:a.content||" ",language:l||"python",syntaxTheme:r,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit"})]},`notebook-code-line-${s}`))})}),F8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=z8(a),c=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null,f=a.cellType==="code",h=f?J0(Oi(a.sourceLines,["context","delete"]),Oi(a.sourceLines,["context","add"])).filter(p=>p.type!=="context"):[];return f&&h.length===0?null:y.jsxs("div",{className:`rounded border border-github-border bg-github-bg-secondary/40 p-4 ${R8(a.status)}`,children:[y.jsx("div",{className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:y.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:X0[a.cellType]}),c&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:c}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]})}),y.jsx("div",{className:"space-y-3",children:f?y.jsx("div",{className:`px-4 py-3 ${kx(a.status==="delete"?"before":"after")}`,children:y.jsx(B8,{lines:h,syntaxTheme:r,language:l})}):u.map((p,b)=>y.jsx("div",{className:`px-4 py-3 ${kx(p.tone)}`,children:y.jsx("div",{className:"text-sm text-github-text-primary",children:W0(a.cellType,p.content,r,l)})},`notebook-cell-${s}-section-${b}`))})]},`notebook-cell-${s}`)})}),I8=({cells:e,syntaxTheme:r,language:l})=>y.jsx("div",{className:"space-y-4",children:e.map((a,s)=>{const u=a.cellType==="code"&&a.executionCount!==void 0?`In[${a.executionCount??" "}]`:null;return y.jsxs("div",{className:"rounded border border-github-border bg-github-bg-secondary/40 p-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[y.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-github-text-muted",children:X0[a.cellType]}),u&&y.jsx("span",{className:"text-xs font-mono text-github-text-secondary",children:u}),a.id&&y.jsx("span",{className:"text-xs font-mono text-github-text-muted",children:a.id})]}),y.jsx("div",{className:"text-sm text-github-text-primary",children:W0(a.cellType,a.sourceText,r,l)})]},`notebook-full-cell-${s}`)})});function U8(e){const{file:r,baseCommitish:l,targetCommitish:a}=e,[s,u]=T.useState("diff-preview"),c=T.useMemo(()=>E8(e.mergedChunks),[e.mergedChunks]),[f,h]=T.useState({status:"idle",cells:c.cells,language:c.language}),p=T.useMemo(()=>f.cells.filter(L=>L.status==="context"?!1:L.cellType!=="code"?!0:J0(Oi(L.sourceLines,["context","delete"]),Oi(L.sourceLines,["context","add"])).filter($=>$.type!=="context").length>0),[f.cells]),[b,g]=T.useState(null),[v,x]=T.useState(c.language),[w,S]=T.useState(!1),[N,E]=T.useState(null),[C,j]=T.useState(null),B=T.useMemo(()=>!l&&!a?null:r.status==="added"?a?{path:r.path,ref:a}:null:r.status==="deleted"?l?{path:r.oldPath||r.path,ref:l}:null:a?{path:r.path,ref:a}:l?{path:r.oldPath||r.path,ref:l}:null,[l,a,r.oldPath,r.path,r.status]),q=T.useMemo(()=>B?`${B.ref}:${B.path}`:null,[B]);return T.useEffect(()=>{let L=!1;return(async()=>{const $=l||"HEAD~1",G=a||"HEAD",M=r.oldPath||r.path,V=r.status!=="added"&&hd($),Y=r.status!=="deleted"&&hd(G);if(!V&&!Y){h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be loaded, falling back to diff preview."});return}h(J=>({...J,status:"loading"}));try{const[J,U]=await Promise.all([V?pd(M,$):Promise.resolve(null),Y?pd(r.path,G):Promise.resolve(null)]),X=J?Ha(J):null,F=U?Ha(U):null;if(!X&&!F){L||h({status:"ready",cells:c.cells,language:c.language,source:"diff",message:"Notebook content could not be parsed, falling back to diff preview."});return}const O=F?.language??X?.language??c.language,z=K0(X?.cells??[],F?.cells??[]);L||h({status:"ready",cells:z,source:"blob",language:O})}catch(J){L||h({status:"error",cells:c.cells,language:c.language,source:"diff",message:J instanceof Error?J.message:"Failed to load notebook preview."})}})(),()=>{L=!0}},[l,r.oldPath,r.path,r.status,e.mergedChunks,a,c]),T.useEffect(()=>{if(s!=="full-preview")return;if(!B||!q||!hd(B.ref)){g(null),j(null),E(null),S(!1);return}let L=!1;return(q!==C||!b)&&(async()=>{q!==C&&g(null),S(!0),E(null);try{const $=await pd(B.path,B.ref);if(!$)throw new Error("Failed to load preview.");const G=Ha($);if(!G)throw new Error("Notebook content could not be parsed.");L||(g(G.cells),x(G.language??c.language),j(q))}catch($){L||(g(null),j(null),E($ instanceof Error?$.message:"Failed to load preview"))}finally{L||S(!1)}})(),()=>{L=!0}},[c.language,b,C,s,B,q]),y.jsxs("div",{className:"bg-github-bg-primary",children:[y.jsx("div",{className:"flex items-center justify-between border-b border-github-border px-4 py-2",children:y.jsxs("div",{className:"flex items-center gap-1.5",children:[y.jsxs("button",{onClick:()=>u("diff"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Code Diff",children:[y.jsx(eu,{size:14}),"Diff"]}),y.jsxs("button",{onClick:()=>u("diff-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="diff-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Diff Preview",children:[y.jsx(Rs,{size:14}),"Diff Preview"]}),y.jsxs("button",{onClick:()=>u("full-preview"),className:`px-2 py-1 text-xs font-medium rounded transition-colors duration-200 flex items-center gap-1 cursor-pointer ${s==="full-preview"?"text-github-text-primary":"text-github-text-secondary hover:text-github-text-primary"}`,title:"Full Preview",children:[y.jsx(Rs,{size:14}),"Full Preview"]})]})}),s==="diff"&&y.jsx(Qs,{...e}),s==="diff-preview"&&y.jsxs("div",{className:"p-4",children:[f.status==="loading"&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"Loading notebook preview…"}),f.message&&y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:f.message}),p.length===0?y.jsxs("div",{children:[y.jsx("div",{className:"text-xs text-github-text-muted mb-3",children:"No changed notebook cells were found. Showing raw diff instead."}),y.jsx(Qs,{...e})]}):y.jsx(F8,{cells:p,syntaxTheme:e.syntaxTheme,language:f.language})]}),s==="full-preview"&&y.jsxs("div",{className:"p-4",children:[w&&y.jsx("div",{className:"text-sm text-github-text-muted mb-3",children:"Loading preview..."}),N&&y.jsx("div",{className:"text-sm text-github-danger mb-3",children:N}),!w&&!N&&b&&y.jsx(I8,{cells:b,syntaxTheme:e.syntaxTheme,language:v??c.language}),!w&&!N&&!b&&y.jsx("div",{className:"text-sm text-github-text-muted",children:"Preview unavailable."})]})]})}const gd=[{id:"image",match:e=>KE(e.path),Component:nC,canExpandHiddenLines:()=>!1},{id:"markdown",match:e=>WE(e.path),Component:g8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"notebook",match:e=>tC(e.path),Component:U8,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"},{id:"default",match:()=>!0,Component:Qs,canExpandHiddenLines:e=>e.status!=="added"&&e.status!=="deleted"}],H8=e=>{const r=gd[gd.length-1];if(!r)throw new Error("No diff viewers registered");return gd.find(l=>l.match(e))??r},q8=e=>{switch(e){case"added":return y.jsx(Gx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Yx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Vx,{size:16,className:"text-github-warning"});default:return y.jsx(eu,{size:16,className:"text-github-text-secondary"})}},P8=({file:e,isCollapsed:r,isReviewed:l,onToggleCollapsed:a,onToggleAllCollapsed:s,onToggleReviewed:u})=>{const[c,f]=T.useState(!1);return y.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[y.jsx("button",{onClick:h=>{h.altKey?s(!r):a(e.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:r?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:r?y.jsx(Px,{size:16}):y.jsx(Ri,{size:16})}),q8(e.status),y.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:e.path}),y.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${c?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(e.path).then(()=>{console.log("File path copied to clipboard:",e.path),f(!0),setTimeout(()=>f(!1),2e3)}).catch(h=>{console.error("Failed to copy file path:",h)})},title:"Copy file path",children:c?y.jsx(Pa,{size:14}):y.jsx($x,{size:14})}),e.oldPath&&e.oldPath!==e.path&&y.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",e.oldPath,")"]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",e.additions]}),y.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",e.deletions]})]}),y.jsxs("button",{onClick:()=>u(e.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${l?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:l?"Mark as not reviewed":"Mark as reviewed",children:[l?y.jsx(Pa,{size:14}):y.jsx($S,{size:14}),"Viewed"]})]})]})},$8=e=>{const r={old:[],new:[]};return e.forEach(l=>{const a=l.side??"new",[s,u]=Array.isArray(l.line)?[l.line[0],l.line[1]]:[l.line,l.line];s<=0||u<=0||r[a].push({start:Math.min(s,u),end:Math.max(s,u)})}),r},V8=(e,r)=>e.chunks.map((l,a)=>{const s=r==="old"?l.oldStart:l.newStart,u=r==="old"?l.oldLines:l.newLines;return!s||u<=0?null:{start:s,end:s+u-1,index:a}}).filter(l=>!!l),G8=e=>{const r=[],l=e[0];if(!l)return r;l.start>1&&r.push({type:"before",start:1,end:l.start-1,nextChunkIndex:l.index});for(let s=1;s<e.length;s+=1){const u=e[s-1],c=e[s];!u||!c||c.start>u.end+1&&r.push({type:"between",start:u.end+1,end:c.start-1,prevChunkIndex:u.index,nextChunkIndex:c.index})}const a=e[e.length-1];return a&&r.push({type:"after",start:a.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:a.index}),r},Y8=e=>{const r=new Map;return e.forEach(l=>{const a=l.originalIndices[0];a!==void 0&&r.set(a,l)}),r},X8=e=>{const r=e[e.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},Z8=T.memo(function({file:r,comments:l,diffMode:a,reviewedFiles:s,onToggleReviewed:u,collapsedFiles:c,onToggleCollapsed:f,onToggleAllCollapsed:h,onAddComment:p,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E=null,fileIndex:C=0,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q,mergedChunks:L,expandLines:I,expandAllBetweenChunks:$,prefetchFileContent:G,isExpandLoading:M}){const V=c.has(r.path),Y=T.useRef(null),[J,U]=T.useState(!1),X=H8(r),F=X.canExpandHiddenLines?.(r)??!1;T.useEffect(()=>{if(!F)return;const D=Y.current;if(!D)return;const H=new IntersectionObserver(([A])=>{A?.isIntersecting&&U(!0)},{rootMargin:"200px"});return H.observe(D),()=>H.disconnect()},[F]),T.useEffect(()=>{J&&!V&&F&&G(r)},[J,V,F,r,G]);const O=T.useCallback(async(D,H,A,re)=>{try{await p(r.path,D,H,A,re)}catch(fe){console.error("Failed to add comment:",fe)}},[r.path,p]);T.useEffect(()=>{if(V||M||!F||l.length===0||r.chunks.length===0||L.length===0)return;const D=$8(l),H=Y8(L),A=X8(L),re=L[L.length-1],fe=new Set,de=(he,ge)=>{fe.has(he)||(fe.add(he),ge())};["old","new"].forEach(he=>{const ge=D[he];if(ge.length===0)return;const ue=V8(r,he);G8(ue).forEach(be=>{if(!ge.some(ze=>ze.start<=be.end&&ze.end>=be.start))return;if(be.type==="after"&&re&&A!==null){re.hiddenLinesAfter>0&&de(`after-${A}`,()=>{I(r,A,"down",re.hiddenLinesAfter)});return}const ke=be.nextChunkIndex;if(ke===void 0)return;const Ce=H.get(ke);!Ce||Ce.hiddenLinesBefore<=0||(be.type==="before"?de(`before-${ke}`,()=>{I(r,ke,"up",Ce.hiddenLinesBefore)}):be.type==="between"&&de(`between-${ke}`,()=>{$(r,ke,Ce.hiddenLinesBefore)}))})})},[l,$,I,r,V,M,L,F]);const z="4em",Q=X.Component,_={file:r,comments:l,diffMode:a,syntaxTheme:w,baseCommitish:S,targetCommitish:N,cursor:E,fileIndex:C,mergedChunks:L,isExpandLoading:M,expandHiddenLines:I,expandAllBetweenChunks:$,onAddComment:O,onGeneratePrompt:b,onRemoveComment:g,onUpdateComment:v,onOpenInEditor:x,onLineClick:j,commentTrigger:B,onCommentTriggerHandled:q};return y.jsxs("div",{ref:Y,className:"bg-github-bg-primary",style:{"--line-number-width":z},children:[y.jsx(P8,{file:r,isCollapsed:V,isReviewed:s.has(r.path),onToggleCollapsed:f,onToggleAllCollapsed:h,onToggleReviewed:u}),!V&&y.jsx("div",{className:"overflow-y-auto",children:y.jsx(Q,{..._})})]})});function Q8(e){const r={name:"",path:"",isDirectory:!0,children:[]};e.forEach(a=>{const s=a.path.split("/");let u=r;for(let c=0;c<s.length;c++){const f=s[c];if(!f)continue;const h=c===s.length-1,p=s.slice(0,c+1).join("/");u.children||(u.children=[]);let b=u.children.find(g=>g.name===f);b||(b={name:f,path:p,isDirectory:!h,children:h?void 0:[],file:h?a:void 0},u.children.push(b)),u=b}});const l=a=>{if(!a.isDirectory||!a.children)return a;if(a.children=a.children.map(l),a.children.length===1&&a.children[0]?.isDirectory&&a.children[0]?.children){const s=a.children[0];if(s)return a.name?{...a,name:`${a.name}/${s.name}`,path:s.path,children:s.children}:a}return a};return l(r)}function K8({files:e,onScrollToFile:r,comments:l,reviewedFiles:a,onToggleReviewed:s,selectedFileIndex:u}){const c=Q8(e),f=T.useRef(null),h=T.useRef(new Map),p={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},b=$=>{if(!$.isDirectory||!$.children)return[];const G=[];return $.path&&G.push($.path),$.children.forEach(M=>{G.push(...b(M))}),G},[g,v]=T.useState(()=>new Set(b(c))),[x,w]=T.useState(""),S=$=>l.filter(G=>G.file===$).length,N=T.useMemo(()=>{const $=G=>{if(!x.trim())return G;if(G.isDirectory&&G.children){const M=G.children.map(V=>$(V)).filter(V=>V!==null);return M.length>0?{...G,children:M}:null}else if(G.file)return G.file.path.toLowerCase().includes(x.toLowerCase())?G:null;return null};return $(c)||{...c,children:[]}},[c,x]),E=$=>{switch($){case"added":return y.jsx(Gx,{size:16,className:"text-github-accent"});case"deleted":return y.jsx(Yx,{size:16,className:"text-github-danger"});case"renamed":return y.jsx(Vx,{size:16,className:"text-github-warning"});default:return y.jsx(eu,{size:16,className:"text-github-text-secondary"})}},C=$=>{v(G=>{const M=new Set(G);return M.has($)?M.delete($):M.add($),M})},j=b(c),B=g.size===j.length&&j.length>0,q=()=>{v(B?new Set:new Set(j))},L=($,G)=>{const M=f.current,V=$.currentTarget;if(!M){C(G);return}const Y=M.getBoundingClientRect(),J=V.getBoundingClientRect(),U=Number.parseFloat(getComputedStyle(V).top||"0");if(J.top-Y.top<=U+1){const z=h.current.get(G)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),Q=V.getBoundingClientRect().height||0,_=z??V,D=Number.parseInt(_.dataset.depth||V.dataset.depth||"0",10),H=Q*D,A=Math.max(0,_.offsetTop-H);if(Math.abs(M.scrollTop-A)<=1){C(G);return}M.scrollTo({top:A,behavior:"smooth"});return}C(G)},I=($,G=0)=>{if($.isDirectory&&$.children){const M=g.has($.path);return y.jsxs("div",{"data-dir-container":$.path||void 0,ref:V=>{$.path&&(V?h.current.set($.path,V):h.current.delete($.path))},children:[$.name&&y.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`,top:`calc(${G} * var(--dir-row-height))`,zIndex:1e3-G},onClick:V=>L(V,$.path),children:[M?y.jsx(Ri,{size:16}):y.jsx(Px,{size:16}),M?y.jsx(vS,{size:16,className:"text-github-text-secondary"}):y.jsx(SS,{size:16,className:"text-github-text-secondary"}),y.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:$.name,children:$.name})]}),(M||!$.name)&&$.children.map(V=>I(V,$.name?G+1:G))]},$.path)}else if($.file){const M=$.file,V=S(M.path),Y=a.has(M.path),J=e.findIndex(X=>X.path===M.path),U=u!==null&&u===J;return y.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${Y?"opacity-70":""} ${U?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":G,style:{paddingLeft:`${G*16+16}px`},onClick:()=>r(M.path),children:[y.jsx(Qx,{checked:Y,onChange:()=>{s(M.path)},title:Y?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E($.file.status),y.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${Y?"line-through text-github-text-muted":""}`,title:$.file.path,children:$.name}),V>0&&y.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[y.jsx(Xx,{size:14}),V]})]},M.path)}return null};return y.jsxs("div",{className:"h-full flex flex-col",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[y.jsxs("div",{className:"flex items-center justify-between mb-3",children:[y.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",e.length,")"]}),y.jsx("button",{onClick:q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:B?"Collapse all":"Expand all",children:B?y.jsx(lS,{size:16,className:"text-github-text-secondary"}):y.jsx(aS,{size:16,className:"text-github-text-secondary"})})]}),y.jsxs("div",{className:"relative",children:[y.jsx(HS,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),y.jsx("input",{type:"text",placeholder:"Filter files...",value:x,onChange:$=>w($.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:p,ref:f,children:N.children?.map($=>I($))})]})}function J8({style:e}){return y.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:e,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function W8({isOpen:e,onClose:r}){const{enableScope:l,disableScope:a}=Xa();return it("escape",()=>r(),{enabled:e},[r,e]),T.useEffect(()=>(e?a("navigation"):l("navigation"),()=>{l("navigation")}),[e,l,a]),e?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[y.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:y.jsx(tu,{size:20})})]}),y.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),y.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),y.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),y.jsxs("section",{children:[y.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),y.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),y.jsx("span",{className:"text-github-text-muted",children:"+"}),y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),y.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),y.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),y.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),y.jsxs("div",{className:"flex justify-between text-sm",children:[y.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),y.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),y.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:y.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function ej({style:e}){return y.jsxs("svg",{style:e,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function tj({shouldReload:e,isReloading:r,onReload:l,changeType:a,className:s="",compact:u=!1}){if(!e)return null;const c=()=>{switch(a){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return y.jsxs("button",{onClick:l,disabled:r,className:`
|
|
55
|
+
flex items-center gap-1.5 text-xs rounded-md border ${s} ${u?"px-2 py-2":"px-3 py-1.5"}
|
|
56
|
+
${r?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
|
|
57
|
+
`,title:`${c()} - Click to refresh`,"aria-label":u?"Refresh":void 0,children:[y.jsx(IS,{size:12,className:`${r?"animate-spin":""}`}),u?y.jsx("span",{className:"sr-only",children:"Refresh"}):"Refresh"]})}function Ex({label:e,value:r,resolvedValue:l,onChange:a,options:s,disabledValues:u=[]}){const[c,f]=T.useState(!1),{refs:h,floatingStyles:p,context:b}=Od({open:c,onOpenChange:f,middleware:[Ad(4),jd(),Td({padding:8})],whileElementsMounted:Nd}),g=_d(b,{handleClose:Bd()}),v=Ld(b),x=$E(b),w=Dd(b),S=zd(b),{getReferenceProps:N,getFloatingProps:E}=Md([g,v,x,w,S]),C=r==="working"&&u.includes("staged")||r==="staged"&&u.includes("working"),j=()=>{const G=s.specialOptions.find(Y=>Y.value===r);if(G)return G.label;const M=s.branches.find(Y=>Y.name===r);if(M)return`${M.name}${M.current?" (current)":""}`;const V=s.commits.find(Y=>Y.shortHash===r||Y.hash===r);return V?`${V.shortHash} - ${V.message}`:r||"Select..."},B=G=>{a(G),f(!1)},q=G=>u.includes(G),L=(G,M)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",G?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",G?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",M?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),I=(G,M)=>G===r||M===r?!0:l?G===l||M===l:!1,$=()=>{let G=0;const M=s.specialOptions.findIndex(V=>V.value===r);if(M!==-1)return M;if(G+=s.specialOptions.length,!C){const V=s.commits.findIndex(J=>J.shortHash===r);if(V!==-1)return G+V;G+=s.commits.length;const Y=s.branches.findIndex(J=>J.name===r);if(Y!==-1)return G+Y}return 0};return y.jsxs(y.Fragment,{children:[y.jsxs("button",{ref:h.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":c,...N(),children:[y.jsxs("span",{className:"text-xs text-github-text-secondary",children:[e,":"]}),y.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[y.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:j()}),y.jsx(Ri,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),c&&y.jsx(Rd,{children:y.jsx(IE,{context:b,modal:!1,initialFocus:$(),children:y.jsxs("div",{ref:h.setFloating,style:p,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...E(),children:[s.specialOptions.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),s.specialOptions.map(G=>y.jsx("button",{onClick:()=>B(G.value),disabled:q(G.value),className:L(G.value===r,q(G.value)),children:G.label},G.value))]}),!C&&s.commits.length>0&&y.jsxs("div",{className:"border-b border-github-border",children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),s.commits.map(G=>y.jsx("button",{onClick:()=>B(G.shortHash),disabled:q(G.shortHash),className:L(I(G.shortHash,G.hash),q(G.shortHash)),children:y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:G.shortHash}),y.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:G.message})]})},G.hash))]}),!C&&s.branches.length>0&&y.jsxs("div",{children:[y.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),s.branches.map(G=>y.jsx("button",{onClick:()=>B(G.name),disabled:q(G.name),className:L(G.name===r,q(G.name)),children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-github-text-primary",children:G.name}),G.current&&y.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},G.name))]})]})})})]})}function nj({isOpen:e,onClose:r,options:l,baseRevision:a,targetRevision:s,resolvedBaseRevision:u,resolvedTargetRevision:c,onApply:f}){const[h,p]=T.useState(a),[b,g]=T.useState(s),{enableScope:v,disableScope:x}=Xa();T.useEffect(()=>(e?x("navigation"):v("navigation"),()=>{v("navigation")}),[e,v,x]);const w=T.useMemo(()=>{const E=c||b,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return b?[b]:[];const j=l.commits.slice(0,C+1).map(B=>B.shortHash);return b&&!j.includes(b)&&j.push(b),j.includes("working")||j.push("working"),j},[b,c,l.commits]),S=T.useMemo(()=>{const E=u||h,C=l.commits.findIndex(B=>B.shortHash===E||B.hash===E);if(C===-1)return h?[h]:[];const j=l.commits.slice(C).map(B=>B.shortHash);return h&&!j.includes(h)&&j.push(h),j},[h,u,l.commits]);if(!e)return null;const N=()=>{f(h,b),r()};return y.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[y.jsx("div",{className:"absolute inset-0 bg-black/40",onClick:r}),y.jsxs("div",{className:"relative bg-github-bg-secondary border border-github-border rounded-lg shadow-lg w-full max-w-lg mx-4",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Detailed Diff"}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1","aria-label":"Close detailed diff",children:y.jsx(tu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-center gap-3",children:[y.jsx(Ex,{label:"Base",value:h,resolvedValue:u,onChange:p,options:l,disabledValues:w}),y.jsx("span",{className:"text-github-text-muted",children:"..."}),y.jsx(Ex,{label:"Target",value:b,resolvedValue:c,onChange:g,options:l,disabledValues:S})]}),y.jsxs("div",{className:"flex justify-end gap-2",children:[y.jsx("button",{onClick:r,className:"px-3 py-1.5 text-xs font-medium rounded border border-github-border text-github-text-secondary hover:text-github-text-primary transition-colors",type:"button",children:"Cancel"}),y.jsx("button",{onClick:N,className:"px-3 py-1.5 text-xs font-medium rounded bg-github-accent text-white hover:bg-github-accent/90 transition-colors",type:"button",children:"Apply"})]})]})]})]})}const rj=[{id:"vscode",label:"VS Code",protocol:"vscode",cliCommand:"code",cliArgs:[],aliases:["vscode","code"]},{id:"cursor",label:"Cursor",protocol:"cursor",cliCommand:"cursor",cliArgs:[],aliases:["cursor"]},{id:"none",label:"Hide “Open in editor” button",protocol:null,cliCommand:null,cliArgs:[],aliases:["none","disabled","off"]}],ev="vscode",lj={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:ev},ij=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function aj({isOpen:e,onClose:r,settings:l,onSettingsChange:a}){const[s,u]=T.useState(l),{enableScope:c,disableScope:f}=Xa();T.useEffect(()=>{u(l)},[l]),T.useEffect(()=>{a(s)},[s,a]),T.useEffect(()=>(e?f("navigation"):c("navigation"),()=>{c("navigation")}),[e,c,f]);const h=()=>s.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s.theme,p=()=>h()==="light"?cx:fx,b=v=>{const x={...s,theme:v},S=(v==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":v)==="light"?cx:fx;if(!S.some(E=>E.id===s.syntaxTheme)&&S.length>0){const E=S[0];E&&(x.syntaxTheme=E.id)}u(x)},g=()=>{u(lj)};return e?y.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:y.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[y.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[y.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[y.jsx(Zx,{size:20}),"Appearance Settings"]}),y.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:y.jsx(tu,{size:18})})]}),y.jsxs("div",{className:"p-4 space-y-6",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:s.fontSize,onChange:v=>u({...s,fontSize:parseInt(v.target.value)}),className:"flex-1 accent-github-accent"}),y.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[s.fontSize,"px"]})]})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),y.jsx("select",{value:s.fontFamily,onChange:v=>u({...s,fontFamily:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:ij.map(v=>y.jsx("option",{value:v.value,children:v.name},v.value))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),y.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(v=>y.jsx("button",{onClick:()=>b(v),className:`px-3 py-2 text-sm rounded border transition-colors ${s.theme===v?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:v.charAt(0).toUpperCase()+v.slice(1)},v))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),y.jsx("select",{value:s.syntaxTheme,onChange:v=>u({...s,syntaxTheme:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Open In Editor"}),y.jsx("select",{value:s.editor,onChange:v=>u({...s,editor:v.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:rj.map(v=>y.jsx("option",{value:v.id,children:v.label},v.id))})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[y.jsx("button",{onClick:g,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),y.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const Cx={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},oj=({isActive:e})=>e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"animate-sparkle-rise",style:{...Cx,left:"-12px",animationDelay:"0s"},children:"✨"}),y.jsx("div",{className:"animate-sparkle-rise",style:{...Cx,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Nx={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark",editor:ev},Ax="reviewit-appearance-settings";function sj(){const[e,r]=T.useState(()=>{try{const s=localStorage.getItem(Ax);if(s)return{...Nx,...JSON.parse(s)}}catch(s){console.warn("Failed to load appearance settings from localStorage:",s)}return Nx}),l=T.useCallback(s=>{const u=document.documentElement;u.setAttribute("data-theme",s),s==="light"?(u.style.setProperty("--color-github-bg-primary","#ffffff"),u.style.setProperty("--color-github-bg-secondary","#f6f8fa"),u.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),u.style.setProperty("--color-github-border","#d1d9e0"),u.style.setProperty("--color-github-text-primary","#24292f"),u.style.setProperty("--color-github-text-secondary","#656d76"),u.style.setProperty("--color-github-text-muted","#8c959f"),u.style.setProperty("--color-github-accent","#1f883d"),u.style.setProperty("--color-github-danger","#cf222e"),u.style.setProperty("--color-github-warning","#bf8700"),u.style.setProperty("--color-diff-addition-bg","#d1f4cd"),u.style.setProperty("--color-diff-addition-border","#1f883d"),u.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),u.style.setProperty("--color-diff-deletion-border","#cf222e"),u.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),u.style.setProperty("--color-comment-bg","#fff8e1"),u.style.setProperty("--color-comment-border","#ffd54f"),u.style.setProperty("--color-comment-text","#5d4037"),u.style.setProperty("--color-yellow-btn-bg","#fef3c7"),u.style.setProperty("--color-yellow-btn-border","#f59e0b"),u.style.setProperty("--color-yellow-btn-text","#92400e"),u.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","#fde68a"),u.style.setProperty("--color-yellow-path-text","#92400e"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(31, 41, 55, 0.35)"),u.style.setProperty("--color-editor-btn-text","#1f2937"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(31, 41, 55, 0.5)")):(u.style.setProperty("--color-github-bg-primary","#0d1117"),u.style.setProperty("--color-github-bg-secondary","#161b22"),u.style.setProperty("--color-github-bg-tertiary","#21262d"),u.style.setProperty("--color-github-border","#30363d"),u.style.setProperty("--color-github-text-primary","#f0f6fc"),u.style.setProperty("--color-github-text-secondary","#8b949e"),u.style.setProperty("--color-github-text-muted","#6e7681"),u.style.setProperty("--color-github-accent","#238636"),u.style.setProperty("--color-github-danger","#da3633"),u.style.setProperty("--color-github-warning","#d29922"),u.style.setProperty("--color-diff-addition-bg","#0d4429"),u.style.setProperty("--color-diff-addition-border","#1b7c3d"),u.style.setProperty("--color-diff-deletion-bg","#67060c"),u.style.setProperty("--color-diff-deletion-border","#da3633"),u.style.setProperty("--color-diff-neutral-bg","#21262d"),u.style.setProperty("--color-comment-bg","#1c2128"),u.style.setProperty("--color-comment-border","#373e47"),u.style.setProperty("--color-comment-text","#e6edf3"),u.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),u.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),u.style.setProperty("--color-yellow-btn-text","#fbbf24"),u.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-btn-hover-border","#d97706"),u.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),u.style.setProperty("--color-yellow-path-text","#fbbf24"),u.style.setProperty("--color-editor-btn-bg","rgba(248, 250, 252, 0.1)"),u.style.setProperty("--color-editor-btn-border","rgba(248, 250, 252, 0.3)"),u.style.setProperty("--color-editor-btn-text","#f0f6fc"),u.style.setProperty("--color-editor-btn-hover-bg","rgba(248, 250, 252, 0.2)"),u.style.setProperty("--color-editor-btn-hover-border","rgba(248, 250, 252, 0.45)")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return T.useEffect(()=>{const s=document.documentElement;if(s.style.setProperty("--app-font-size",`${e.fontSize}px`),s.style.setProperty("--app-font-family",e.fontFamily),e.theme==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const c=f=>{l(f.matches?"dark":"light")};return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}else{l(e.theme);return}},[e,l]),{settings:e,updateSettings:s=>{r(s);try{localStorage.setItem(Ax,JSON.stringify(s))}catch(u){console.warn("Failed to save appearance settings to localStorage:",u)}}}}function tv(e,r,l){const a=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${e||"<unknown file>"}:${a}
|
|
58
|
+
${l}`}function uj(e){return e.length===0?"":e.map(l=>tv(l.file,l.line,l.body)).join(`
|
|
59
|
+
=====
|
|
60
|
+
`)}const Ts="difit-storage-v1";class cj{generateStorageKey(r,l){const a=s=>s.replace(/[^a-zA-Z0-9-_]/g,u=>`_${u.charCodeAt(0).toString(16)}_`);return`${a(r)}-${a(l)}`}normalizeCommitish(r,l,a){if(r==="."||r==="working")return"WORKING";if(r==="staged")return"STAGED";if((r==="HEAD"||r==="@")&&l)return l;if(a?.has(r)){const s=a.get(r);if(s)return s}return(r.startsWith("@")||r.includes("^")||r.includes("~")||r.includes("HEAD"))&&console.warn(`[StorageService] Cannot normalize symbolic ref '${r}' - may cause key collision. currentCommitHash=${l}`),r}getStorageKey(r,l,a,s,u){let c,f;l==="."||l==="working"?(c=a||r,f="WORKING"):l==="staged"?(c=a||r,f="STAGED"):(c=this.normalizeCommitish(r,a,s),f=this.normalizeCommitish(l,a,s));const h=this.generateStorageKey(c,f);return u?`${Ts}/${u}/${h}`:`${Ts}/${h}`}getDiffContextData(r,l,a,s,u){try{const c=this.getStorageKey(r,l,a,s,u),f=localStorage.getItem(c);if(!f)return null;const h=JSON.parse(f);return h.version!==1?(console.warn(`Unknown storage version: ${h.version}`),null):h}catch(c){return console.error("Error reading diff context data:",c),null}}saveDiffContextData(r,l,a,s,u,c){try{const f=this.getStorageKey(r,l,s,u,c),h={...a,baseCommitish:r,targetCommitish:l,lastModifiedAt:new Date().toISOString()};localStorage.setItem(f,JSON.stringify(h))}catch(f){f instanceof DOMException&&f.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",f)}}getComments(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.comments||[]}saveComments(r,l,a,s,u,c){const h=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};h.comments=a,this.saveDiffContextData(r,l,h,s,u,c)}getViewedFiles(r,l,a,s,u){return this.getDiffContextData(r,l,a,s,u)?.viewedFiles||[]}saveViewedFiles(r,l,a,s,u,c){const h=this.getDiffContextData(r,l,s,u,c)||{version:1,baseCommitish:r,targetCommitish:l,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};h.viewedFiles=a,this.saveDiffContextData(r,l,h,s,u,c)}cleanupOldData(r){const l=new Date;l.setDate(l.getDate()-r);const a=l.getTime(),s=[];for(let u=0;u<localStorage.length;u++){const c=localStorage.key(u);if(c?.startsWith(Ts))try{const f=localStorage.getItem(c);if(!f)continue;const h=JSON.parse(f);new Date(h.lastModifiedAt).getTime()<a&&s.push(c)}catch{}}s.forEach(u=>localStorage.removeItem(u))}getStorageSize(){let r=0;for(let l=0;l<localStorage.length;l++){const a=localStorage.key(l);if(!a?.startsWith(Ts))continue;const s=localStorage.getItem(a);s&&(r+=(a.length+s.length)*2)}return r}}const qa=new cj;async function Tx(e){try{const l=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",l);return Array.from(new Uint8Array(a)).map(u=>u.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),fj(e)}}function fj(e){let r=0;for(let l=0;l<e.length;l++){const a=e.charCodeAt(l);r=(r<<5)-r+a,r=r&r}return Math.abs(r).toString(16)}function jx(e){const r=e.chunks.map(l=>{const a=l.lines.filter(s=>s.type!=="hunk"&&s.type!=="header").map(s=>`${s.type}:${s.content}`).join(`
|
|
61
|
+
`);return`${l.header}
|
|
62
|
+
${a}`}).join(`
|
|
63
|
+
|
|
64
|
+
`);return`${e.path}
|
|
65
|
+
${e.status}
|
|
66
|
+
${r}`}function dj(e,r,l,a,s){const[u,c]=T.useState([]);T.useEffect(()=>{if(!e||!r)return;const w=qa.getComments(e,r,l,a,s);c(w)},[e,r,l,a,s]);const f=T.useCallback(w=>{!e||!r||(qa.saveComments(e,r,w,l,a,s),c(w))},[e,r,l,a,s]),h=T.useCallback(w=>{const S={id:crypto.randomUUID(),filePath:w.filePath,body:w.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),position:{side:w.side,line:w.line},codeSnapshot:w.codeSnapshot||{content:"",language:M5(w.filePath)}},N=[...u,S];return f(N),S},[u,f]),p=T.useCallback(w=>{const S=u.filter(N=>N.id!==w);f(S)},[u,f]),b=T.useCallback((w,S)=>{const N=u.map(E=>E.id===w?{...E,body:S,updatedAt:new Date().toISOString()}:E);f(N)},[u,f]),g=T.useCallback(()=>{f([])},[f]),v=T.useCallback(w=>{const S=u.find(E=>E.id===w);if(!S)return"";const N=typeof S.position.line=="number"?S.position.line:[S.position.line.start,S.position.line.end];return tv(S.filePath,N,S.body)},[u]),x=T.useCallback(()=>{const w=u.map(S=>({id:S.id,file:S.filePath,line:typeof S.position.line=="number"?S.position.line:[S.position.line.start,S.position.line.end],body:S.body,timestamp:S.createdAt}));return uj(w)},[u]);return{comments:u,addComment:h,removeComment:p,updateComment:b,clearAllComments:g,generatePrompt:v,generateAllCommentsPrompt:x}}const hj=20;async function _x(e,r){const l=encodeURIComponent(e),a=await fetch(`/api/blob/${l}?ref=${encodeURIComponent(r)}`);if(!a.ok)throw new Error(`Failed to fetch file content: ${a.statusText}`);const u=(await a.text()).split(`
|
|
67
|
+
`);return u.length>0&&u[u.length-1]===""&&u.pop(),{lines:u,totalLines:u.length}}async function pj(e,r,l,a){const s=encodeURIComponent(e),u=new URLSearchParams;r&&u.set("oldRef",r),l&&u.set("newRef",l),a&&a!==e&&u.set("oldPath",a);const c=await fetch(`/api/line-count/${s}?${u}`);if(!c.ok)throw new Error(`Failed to fetch line count: ${c.statusText}`);return c.json()}function mj({baseCommitish:e,targetCommitish:r}){const[l,a]=T.useState({}),[s,u]=T.useState(!1),[c,f]=T.useState(null),[h,p]=T.useState(0),b=T.useRef(new Map),g=T.useRef({});g.current=l;const v=T.useCallback(async L=>{const I=b.current.get(L.path);if(I)return I;const $=(async()=>{const G=g.current[L.path];if(G?.oldContent&&G?.newContent)return G;const M={...G,expandedRanges:G?.expandedRanges||[]};if(L.status!=="added"&&e){const V=L.oldPath||L.path;try{const{lines:Y,totalLines:J}=await _x(V,e);M.oldContent=Y,M.oldTotalLines=J}catch(Y){console.error("Failed to fetch old file content:",Y),M.oldContent=[],M.oldTotalLines=0}}if(L.status!=="deleted"&&r)try{const{lines:V,totalLines:Y}=await _x(L.path,r);M.newContent=V,M.newTotalLines=Y}catch(V){console.error("Failed to fetch new file content:",V),M.newContent=[],M.newTotalLines=0}return M})();b.current.set(L.path,$);try{return await $}finally{b.current.delete(L.path)}},[e,r]),x=T.useCallback(L=>{f(L),p(I=>I+1)},[]),w=T.useCallback(async(L,I,$,G=hj)=>{u(!0);try{const M=await v(L);a(V=>{const Y=V[L.path],J=Y?.expandedRanges||M.expandedRanges||[],U=J.findIndex(F=>F.chunkIndex===I&&F.direction===$),X=[...J];if(U>=0&&X[U]){const F=X[U];X[U]={chunkIndex:F.chunkIndex,direction:F.direction,count:F.count+G}}else X.push({chunkIndex:I,direction:$,count:G});return{...V,[L.path]:{oldContent:Y?.oldContent??M.oldContent,newContent:Y?.newContent??M.newContent,oldTotalLines:Y?.oldTotalLines??M.oldTotalLines,newTotalLines:Y?.newTotalLines??M.newTotalLines,expandedRanges:X}}}),x(L.path)}finally{u(!1)}},[v,x]),S=T.useCallback(async(L,I,$)=>{u(!0);try{const G=await v(L);a(M=>{const V=M[L.path],J=[...V?.expandedRanges||G.expandedRanges||[]],U=J.findIndex(D=>D.chunkIndex===I&&D.direction==="up"),X=J.findIndex(D=>D.chunkIndex===I-1&&D.direction==="down");let F=0,O=0;U>=0&&J[U]&&(F=J[U].count),X>=0&&J[X]&&(O=J[X].count);const z=F+O+$,Q=J.filter(D=>!(D.chunkIndex===I-1&&D.direction==="down")),_=Q.findIndex(D=>D.chunkIndex===I&&D.direction==="up");return _>=0&&Q[_]?Q[_]={chunkIndex:I,direction:"up",count:z}:Q.push({chunkIndex:I,direction:"up",count:z}),{...M,[L.path]:{oldContent:V?.oldContent??G.oldContent,newContent:V?.newContent??G.newContent,oldTotalLines:V?.oldTotalLines??G.oldTotalLines,newTotalLines:V?.newTotalLines??G.newTotalLines,expandedRanges:Q}}}),x(L.path)}finally{u(!1)}},[v,x]),N=T.useCallback(async L=>{const I=g.current[L.path];if(I?.oldTotalLines!==void 0||I?.newTotalLines!==void 0)return;const $=L.status!=="added"?e:void 0,G=L.status!=="deleted"?r:void 0;if(!(!$&&!G))try{const{oldLineCount:M,newLineCount:V}=await pj(L.path,$,G,L.oldPath);a(Y=>{const J=Y[L.path];return J?.oldTotalLines!==void 0||J?.newTotalLines!==void 0?Y:{...Y,[L.path]:{...J,expandedRanges:J?.expandedRanges||[],oldTotalLines:M,newTotalLines:V}}}),x(L.path)}catch(M){console.error("Failed to prefetch line count:",M)}},[e,r,x]),E=T.useCallback((L,I,$)=>{const G=l[L];return G&&G.expandedRanges.find(V=>V.chunkIndex===I&&V.direction===$)?.count||0},[l]),C=T.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=L.chunks[$-1];let M;if(!G)M=I.oldStart-1;else{const J=G.oldStart+G.oldLines;M=I.oldStart-J}const V=E(L.path,$,"up"),Y=$>0?E(L.path,$-1,"down"):0;return Math.max(0,M-V-Y)},[E]),j=T.useCallback((L,I,$)=>{if(L.status==="added"||L.status==="deleted")return 0;const G=l[L.path],M=G?.oldTotalLines||G?.newTotalLines;if(M===void 0)return L.chunks[$+1]?0:-1;if(L.chunks[$+1])return 0;const Y=I.oldStart+I.oldLines-1,J=M-Y,U=E(L.path,$,"down");return Math.max(0,J-U)},[l,E]),B=T.useCallback((L,I,$)=>{const G=l[L.path];if(!G)return I;const M=E(L.path,$,"up"),V=E(L.path,$,"down");if(M===0&&V===0)return I;const Y=G.oldContent||[],J=G.newContent||[],U=[];if(M>0){const O=L.chunks[$-1];let z;O?z=O.oldStart+O.oldLines-1:z=Math.max(0,I.oldStart-1-M);const Q=I.oldStart-1,_=I.newStart-1,D=Math.min(M,Q-z),H=Q-D,A=_-D;for(let re=0;re<D;re++){const fe=H+re+1,de=A+re+1,he=Y[fe-1]??J[de-1]??"";U.push({type:"normal",content:he,oldLineNumber:fe,newLineNumber:de,isExpanded:!0})}}if(U.push(...I.lines),V>0){const O=I.oldStart+I.oldLines-1,z=I.newStart+I.newLines-1,Q=L.chunks[$+1],_=Q?Q.oldStart-1:G.oldTotalLines||O,D=Math.min(V,_-O);for(let H=0;H<D;H++){const A=O+H+1,re=z+H+1,fe=Y[A-1]??J[re-1]??"";U.push({type:"normal",content:fe,oldLineNumber:A,newLineNumber:re,isExpanded:!0})}}const X=U[0],F=U[U.length-1];return{...I,lines:U,oldStart:X?.oldLineNumber??I.oldStart,newStart:X?.newLineNumber??I.newStart,oldLines:(F?.oldLineNumber??I.oldStart+I.oldLines-1)-(X?.oldLineNumber??I.oldStart)+1,newLines:(F?.newLineNumber??I.newStart+I.newLines-1)-(X?.newLineNumber??I.newStart)+1}},[l,E]),q=T.useCallback(L=>{const I=[];for(let $=0;$<L.chunks.length;$++){const G=L.chunks[$];if(!G)continue;const M=B(L,G,$),V=C(L,G,$),Y=j(L,G,$),J=I[I.length-1];if(J&&V===0){J.lines=[...J.lines,...M.lines],J.originalIndices.push($),J.hiddenLinesAfter=Y;const U=J.lines[J.lines.length-1];J.oldLines=(U?.oldLineNumber??J.oldStart+J.oldLines-1)-J.oldStart+1,J.newLines=(U?.newLineNumber??J.newStart+J.newLines-1)-J.newStart+1}else I.push({...M,originalIndices:[$],hiddenLinesBefore:V,hiddenLinesAfter:Y})}return I},[B,C,j]);return{expandedState:l,isLoading:s,lastUpdatedFilePath:c,lastUpdatedAt:h,expandLines:w,expandAllBetweenChunks:S,prefetchFileContent:N,getMergedChunks:q,getHiddenLinesBefore:C,getHiddenLinesAfter:j}}var nv=(e=>(e.DEFAULT="default",e.WORKING="working",e.STAGED="staged",e.DOT="dot",e.SPECIFIC="specific",e))(nv||{});function gj(e){const r=T.useRef(null),l=T.useRef(null),a=T.useRef(0),s=5,u=3e3,[c,f]=T.useState({isWatchEnabled:!1,diffMode:nv.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[h,p]=T.useState(null),b=T.useCallback(()=>{if(!r.current)try{const x=new EventSource("/api/watch");r.current=x,x.onopen=()=>{console.log("Connected to file watch service"),f(w=>({...w,connectionStatus:"connected"})),a.current=0,p(null)},x.onmessage=w=>{try{const S=JSON.parse(w.data);switch(S.type){case"connected":f(N=>({...N,isWatchEnabled:!0,diffMode:S.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",S.changeType),f(N=>({...N,shouldReload:!0,lastChangeTime:new Date,lastChangeType:S.changeType}));break;case"error":console.error("File watch error:",S.message),p(S.message||"File watch error occurred");break}}catch(S){console.error("Error parsing watch event:",S)}},x.onerror=()=>{console.log("File watch connection lost"),f(w=>({...w,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),a.current<s?(f(w=>({...w,connectionStatus:"reconnecting"})),a.current+=1,l.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${a.current}/${s})...`),b()},u)):(console.error("Max reconnection attempts reached"),p("Lost connection to file watch service"))}}catch(x){console.error("Failed to connect to file watch service:",x),p("Failed to connect to file watch service")}},[s,u]),g=T.useCallback(async()=>{if(!c.isReloading){f(x=>({...x,isReloading:!0}));try{e&&await e(),f(x=>({...x,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(x){console.error("Reload failed:",x),p("Failed to reload diff data"),f(w=>({...w,isReloading:!1}))}}},[e,c.isReloading]),v=()=>{r.current&&(r.current.close(),r.current=null),l.current&&(clearTimeout(l.current),l.current=null)};return T.useEffect(()=>(b(),v),[b]),T.useEffect(()=>v,[]),{shouldReload:c.shouldReload,isConnected:c.connectionStatus==="connected",error:h,reload:g,watchState:c}}const nh={SCROLL_CONTAINER:"main.overflow-y-auto"};function Jr(e,r){const l=`file-${e.fileIndex}-chunk-${e.chunkIndex}-line-${e.lineIndex}`;return r==="split"?`${l}-${e.side}`:l}function rv(e,r){return`${e}:${r}`}function bj(e,r){const l=r[e.fileIndex]?.chunks[e.chunkIndex]?.lines[e.lineIndex];return l&&(l.type==="add"||l.type==="delete"||l.type==="normal")?l.type:null}function Sn(e,r){const l=bj(e,r);return l?l==="normal"?!0:l==="delete"?e.side==="left":l==="add"?e.side==="right":!1:!1}function lv(e,r){return Sn(e,r)?e:{...e,side:e.side==="left"?"right":"left"}}const Rx={VIEWPORT_OFFSET_RATIO:1/3};function yj(e,r,l,a){return{line:s=>{const u=e[s.fileIndex];return!u||a?.has(u.path)?!1:l==="unified"||Sn(s,e)},chunk:s=>{const u=e[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="normal")return!1;if(s.lineIndex===0)return!0;const f=u.chunks[s.chunkIndex]?.lines[s.lineIndex-1];return!f||f.type==="normal"},comment:s=>{const u=e[s.fileIndex];if(!u||a?.has(u.path))return!1;const c=u.chunks[s.chunkIndex]?.lines[s.lineIndex];if(!c||c.type==="delete")return!1;const f=c.newLineNumber;if(!f)return!1;const h=rv(u.path,f);return r.has(h)},file:s=>s.chunkIndex===0&&s.lineIndex===0}}function xj(){return e=>{const r=document.getElementById(e);if(!r)return;const l=document.querySelector(nh.SCROLL_CONTAINER);if(!l)throw new Error(`Scrollable container (${nh.SCROLL_CONTAINER}) not found`);const a=r.getBoundingClientRect(),s=l.getBoundingClientRect(),u=l.clientHeight,c=l.scrollTop,f=Math.max(s.top,0),h=Math.min(s.bottom,window.innerHeight);if(!(a.top>=f&&a.bottom<=h)){const S=vj(r,l)-u*Rx.VIEWPORT_OFFSET_RATIO;l.scrollTop=Math.max(0,S);return}const b=a.bottom>Math.min(s.bottom,window.innerHeight),v=r.offsetTop-l.offsetTop-u*Rx.VIEWPORT_OFFSET_RATIO,x=v>c;b&&x&&(l.scrollTop=Math.max(0,v))}}function vj(e,r){let l=e,a=0;for(;l&&l!==r&&l.offsetParent;)a+=l.offsetTop,l=l.offsetParent;return l&&l!==r&&(a+=l.offsetTop),a}function wj(e){return e||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function Sj(e,r,l){return l&&e.fileIndex===r.fileIndex&&e.chunkIndex===r.chunkIndex&&e.lineIndex===r.lineIndex}function kj(e,r,l){let{fileIndex:a,chunkIndex:s,lineIndex:u}=e;const c=l.length;let f=0;if(r==="next")for(u++;f<c;){if(l[a]?.chunks[s]?.lines[u])return{...e,fileIndex:a,chunkIndex:s,lineIndex:u};s++,u=0,l[a]?.chunks[s]||(a++,s=0,u=0,a>=c&&(a=0,f++))}else for(u--;f<c;){if(u<0)if(s--,s<0){a--,a<0&&(a=c-1,f++);const h=l[a];if(h&&h.chunks.length>0){s=h.chunks.length-1;const p=h.chunks[s];u=p&&p.lines.length>0?p.lines.length-1:-1}else s=-1,u=-1}else{const h=l[a]?.chunks[s];u=h&&h.lines.length>0?h.lines.length-1:-1}if(u>=0&&l[a]?.chunks[s]?.lines[u])return{...e,fileIndex:a,chunkIndex:s,lineIndex:u};u<0||u--}return null}function Ej(e,r,l,a,s){let u=e,c=!1;for(;u;){const f=kj(u,r,a);if(!f||(u=f,Sj(u,e,c)))break;if(c=!0,l(u,a)){const h=lv(u,a);return{position:h,scrollTarget:Jr(h,s)}}}return{position:null,scrollTarget:null}}function Cj({files:e,comments:r,viewMode:l=Za,reviewedFiles:a,onToggleReviewed:s,onCreateComment:u,onCopyAllComments:c,onDeleteAllComments:f,onShowCommentsList:h,onRefresh:p}){const[b,g]=T.useState(null),[v,x]=T.useState(!1),w=T.useMemo(()=>xj(),[]),S=T.useMemo(()=>{const V=new Map;return r.forEach(Y=>{const J=Array.isArray(Y.line)?Y.line[0]:Y.line,U=rv(Y.file,J);V.has(U)||V.set(U,[]),V.get(U)?.push(Y)}),V},[r]),N=T.useMemo(()=>yj(e,S,l,a),[e,S,l,a]),E=T.useCallback((V,Y)=>{if(e.length===0)return{position:null,scrollTarget:null};const J=wj(b);return Ej(J,V,Y,e,l)},[b,e,l]),C=T.useCallback(V=>Y=>{const J=E(Y,V);J.position&&(g(J.position),J.scrollTarget&&w(J.scrollTarget))},[E,w]),j=T.useMemo(()=>C(N.line),[C,N.line]),B=T.useMemo(()=>C(N.chunk),[C,N.chunk]),q=T.useMemo(()=>C(N.file),[C,N.file]),L=T.useMemo(()=>C(N.comment),[C,N.comment]),I=T.useCallback(V=>{if(!b||l!=="split")return;let Y={...b,side:V};const J=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];if(J){if(V==="left"&&J.type==="add"&&b.lineIndex>0){if(e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex-1]?.type==="delete"){Y={...Y,lineIndex:b.lineIndex-1},g(Y),w(Jr(Y,l));return}}else if(V==="right"&&J.type==="delete"&&e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex+1]?.type==="add"){Y={...Y,lineIndex:b.lineIndex+1},g(Y),w(Jr(Y,l));return}}if(!Sn(Y,e)){const U=e[b.fileIndex];if(!U)return;const X=U.chunks[b.chunkIndex];if(X){for(let F=b.lineIndex+1;F<X.lines.length;F++){const O={...Y,lineIndex:F};if(Sn(O,e)){Y=O;break}}if(!Sn(Y,e))for(let F=b.lineIndex-1;F>=0;F--){const O={...Y,lineIndex:F};if(Sn(O,e)){Y=O;break}}}if(!Sn(Y,e)){for(let F=b.chunkIndex+1;F<U.chunks.length;F++){const O=U.chunks[F];if(O){for(let z=0;z<O.lines.length;z++){const Q={...Y,chunkIndex:F,lineIndex:z};if(Sn(Q,e)){Y=Q;break}}if(Sn(Y,e))break}}if(!Sn(Y,e))for(let F=b.chunkIndex-1;F>=0;F--){const O=U.chunks[F];if(O){for(let z=O.lines.length-1;z>=0;z--){const Q={...Y,chunkIndex:F,lineIndex:z};if(Sn(Q,e)){Y=Q;break}}if(Sn(Y,e))break}}}}g(Y),w(Jr(Y,l))},[b,l,w,e]),$=T.useCallback(()=>{const V=document.querySelector(nh.SCROLL_CONTAINER);if(!V)return;const Y=V.getBoundingClientRect(),J=Y.top+Y.height/2;let U=1/0,X=null;e.forEach((F,O)=>{F.chunks.forEach((z,Q)=>{z.lines.forEach((_,D)=>{const H=l==="split"?["left","right"]:["right"];for(const A of H){const re={fileIndex:O,chunkIndex:Q,lineIndex:D,side:A};if(l==="split"&&!Sn(re,e))continue;const fe=Jr(re,l),de=document.getElementById(fe);if(de){const he=de.getBoundingClientRect(),ge=he.top+he.height/2,ue=Math.abs(ge-J);he.top<Y.bottom&&he.bottom>Y.top&&ue<U&&(U=ue,X=re)}}})})}),X&&g(X)},[e,l,g]),G=T.useCallback(V=>{if(!V){g(null);return}const Y=lv(V,e);g(Y),w(Jr(Y,l))},[e,l,w]),M={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return it("j, down",()=>j("next"),M,[j]),it("k, up",()=>j("prev"),M,[j]),it("n",()=>B("next"),M,[B]),it("p",()=>B("prev"),M,[B]),it("shift+n",()=>L("next"),M,[L]),it("shift+p",()=>L("prev"),M,[L]),it("]",()=>q("next"),{...M,useKey:!0},[q]),it("[",()=>q("prev"),{...M,useKey:!0},[q]),it("{",()=>{e.length>0&&(g({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(Jr({fileIndex:0,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))},{...M,useKey:!0},[e,l,w]),it("}",()=>{if(e.length>0){const V=e.length-1,Y=e[V];Y&&Y.chunks.length>0&&(g({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"}),w(Jr({fileIndex:V,chunkIndex:0,lineIndex:0,side:l==="split"?"left":"right"},l)))}},{...M,useKey:!0},[e,l,w]),it("h, left",()=>I("left"),{...M,enabled:l==="split"},[I,l]),it("l, right",()=>I("right"),{...M,enabled:l==="split"},[I,l]),it("v",()=>{if(b){const V=e[b.fileIndex];V&&s(V.path)}},M,[b,e,s]),it("shift+r",()=>{p&&p()},M,[p]),it("c",()=>{if(b&&u){const V=e[b.fileIndex]?.chunks[b.chunkIndex]?.lines[b.lineIndex];V&&V.type!=="delete"&&u()}},M,[b,e,u]),it("?",()=>x(!v),{...M,useKey:!0},[v]),it(".",V=>{V.ctrlKey||V.altKey||V.shiftKey||V.metaKey||($(),V.preventDefault())},{...M,useKey:!0,preventDefault:!1},[$]),it("shift+c",()=>{c&&c()},{...M,scopes:["navigation","comments-list"]},[c]),it("shift+d",()=>{f&&f()},{...M,scopes:["navigation","comments-list"]},[f]),it("shift+l",()=>{h&&h()},M,[h]),{cursor:b,isHelpOpen:v,setIsHelpOpen:x,setCursorPosition:G}}function Nj(e,r,l,a,s,u){const[c,f]=T.useState([]),[h,p]=T.useState(new Map);T.useEffect(()=>{if(!e||!r)return;const E=qa.getViewedFiles(e,r,l,a,u);(async()=>{if(s&&s.length>0){const j=[],B=new Set(E.map(q=>q.filePath));for(const q of s)if((q.isGenerated||q.status==="deleted")&&!B.has(q.path))try{const L=jx(q),I=await Tx(L),$={filePath:q.path,viewedAt:new Date().toISOString(),diffContentHash:I};j.push($)}catch(L){console.error("Failed to generate hash for auto-collapsed file:",L)}if(j.length>0){const q=[...E,...j];qa.saveViewedFiles(e,r,q,l,a,u),f(q);return}}f(E)})()},[e,r,l,a,u]);const b=T.useCallback(E=>{!e||!r||(qa.saveViewedFiles(e,r,E,l,a,u),f(E))},[e,r,l,a,u]),g=T.useMemo(()=>new Set(c.map(E=>E.filePath)),[c]),v=T.useCallback(E=>c.find(C=>C.filePath===E),[c]),x=T.useCallback(async E=>{const C=h.get(E.path);if(C)return C;const j=jx(E),B=await Tx(j);return p(q=>new Map(q).set(E.path,B)),B},[h]),w=T.useCallback(async(E,C)=>{const j=v(E);if(!j)return!1;const B=await x(C);return j.diffContentHash!==B},[v,x]),S=T.useCallback(async(E,C)=>{if(v(E)){const B=c.filter(q=>q.filePath!==E);b(B)}else{const B=await x(C),q={filePath:E,viewedAt:new Date().toISOString(),diffContentHash:B},L=[...c,q];b(L)}},[c,v,x,b]),N=T.useCallback(()=>{b([]),p(new Map)},[b]);return{viewedFiles:g,toggleFileViewed:S,isFileContentChanged:w,getViewedFileRecord:v,clearViewedFiles:N}}const Lx={mobileMax:767,desktopMin:1024},Js={mobile:`(max-width: ${Lx.mobileMax}px)`,desktop:`(min-width: ${Lx.desktopMin}px)`},Aj=()=>typeof window>"u"?{isMobile:!1,isDesktop:!0}:{isMobile:window.matchMedia(Js.mobile).matches,isDesktop:window.matchMedia(Js.desktop).matches};function Tj(){const[e,r]=T.useState(()=>Aj());return T.useEffect(()=>{if(typeof window>"u")return;const l=window.matchMedia(Js.mobile),a=window.matchMedia(Js.desktop),s=()=>{r({isMobile:l.matches,isDesktop:a.matches})};return s(),l.addEventListener("change",s),a.addEventListener("change",s),()=>{l.removeEventListener("change",s),a.removeEventListener("change",s)}},[]),e}const bd=new Map;let jj=0;function yd(e){return bd.has(e)||bd.set(e,`file-${++jj}`),bd.get(e)??""}function _j(e,r,l){for(let a=0;a<e.chunks.length;a++){const s=e.chunks[a];if(s)for(let u=0;u<s.lines.length;u++){const c=s.lines[u];if(!c)continue;if((c.newLineNumber||c.oldLineNumber)===l)return{fileIndex:r,chunkIndex:a,lineIndex:u,side:c.newLineNumber?"right":"left"}}}return null}function Rj(e,r){const l=r.findIndex(u=>u.path===e.file);if(l===-1)return null;const a=r[l];if(!a)return null;const s=Array.isArray(e.line)?e.line[1]:e.line;return _j(a,l,s)}const Lj=[],Dj=[],iv="difit.sidebarWidth",av=200,ov=600,xd=320,Oj=()=>{if(typeof window>"u")return xd;const e=window.localStorage.getItem(iv);if(!e)return xd;const r=Number.parseInt(e,10);return Number.isFinite(r)?Math.min(ov,Math.max(av,r)):xd};function Mj(){const[e,r]=T.useState(null),[l,a]=T.useState(Za),s=T.useRef(!1),[u,c]=T.useState(!0),[f,h]=T.useState(!0),[p,b]=T.useState(null),[g,v]=T.useState(!1),[x,w]=T.useState(Oj),[S,N]=T.useState(!1),[E,C]=T.useState(!0),[j,B]=T.useState(!1),[q,L]=T.useState(!1),[I,$]=T.useState(!1),[G,M]=T.useState(!1),[V,Y]=T.useState(!1),[J,U]=T.useState(new Set),X=T.useRef(!1),[F,O]=T.useState(null),[z,Q]=T.useState(""),[_,D]=T.useState(""),[H,A]=T.useState(""),[re,fe]=T.useState(""),de=T.useRef(!1),{settings:he,updateSettings:ge}=sj(),{isMobile:ue,isDesktop:xe}=Tj(),{comments:be,addComment:ye,removeComment:ke,updateComment:Ce,clearAllComments:ze,generatePrompt:We,generateAllCommentsPrompt:qe}=dj(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.repositoryId),_t=T.useMemo(()=>be.map(le=>({id:le.id,file:le.filePath,line:typeof le.position.line=="number"?le.position.line:[le.position.line.start,le.position.line.end],body:le.body,timestamp:le.createdAt,codeContent:le.codeSnapshot?.content,side:le.position.side})),[be]),bt=T.useMemo(()=>{const le=new Map;return _t.forEach(ve=>{const _e=le.get(ve.file);_e?_e.push(ve):le.set(ve.file,[ve])}),le},[_t]),pt=ue&&be.length>0,{viewedFiles:et,toggleFileViewed:Gt,clearViewedFiles:Ft}=Nj(e?.baseCommitish,e?.targetCommitish,e?.commit,void 0,e?.files,e?.repositoryId);T.useEffect(()=>{X.current=!1},[e?.repositoryId,e?.commit]),T.useEffect(()=>{X.current||(U(new Set(et)),X.current=!0)},[et]);const tt=T.useCallback(async le=>{if(!e)return;const ve=e.files.find(Ne=>Ne.path===le);if(!ve)return;const _e=et.has(le);await Gt(le,ve),U(Ne=>{const st=new Set(Ne);return _e?st.delete(le):st.add(le),st}),_e||setTimeout(()=>{const Ne=document.getElementById(yd(le));Ne&&Ne.scrollIntoView({behavior:"smooth",block:"start"})},100)},[e,Gt,et]),kr=T.useCallback(le=>{U(ve=>{const _e=new Set(ve);return _e.has(le)?_e.delete(le):_e.add(le),_e})},[]),ae=T.useCallback(le=>{e&&U(le?new Set(e.files.map(ve=>ve.path)):new Set)},[e]),me=T.useCallback(le=>{s.current=!0,a(le)},[]),{isLoading:je,expandLines:Me,expandAllBetweenChunks:Ge,prefetchFileContent:Yt,getMergedChunks:cn,lastUpdatedFilePath:At,lastUpdatedAt:yt}=mj({baseCommitish:e?.baseCommitish,targetCommitish:e?.targetCommitish}),Rt=T.useRef(cn);T.useEffect(()=>{Rt.current=cn},[cn]);const[Ze,En]=T.useState(new Map);T.useEffect(()=>{if(!e){En(new Map);return}const le=new Map;e.files.forEach(ve=>{le.set(ve.path,Rt.current(ve))}),En(le)},[e]),T.useEffect(()=>{if(!e||!At)return;const le=e.files.find(ve=>ve.path===At);le&&En(ve=>{const _e=new Map(ve);return _e.set(le.path,Rt.current(le)),_e})},[e,At,yt]);const fn=T.useMemo(()=>e?e.files.map(le=>({...le,chunks:Ze.get(le.path)||le.chunks})):[],[e,Ze]),[no,Er]=T.useState(null),{shouldReload:Ml,reload:al,watchState:qn}=gj(async()=>{await Cr()}),{cursor:Cn,isHelpOpen:ol,setIsHelpOpen:ro,setCursorPosition:sl}=Cj({files:fn,comments:_t,viewMode:l,reviewedFiles:et,onToggleReviewed:tt,onCreateComment:()=>{Cn&&Er({fileIndex:Cn.fileIndex,chunkIndex:Cn.chunkIndex,lineIndex:Cn.lineIndex})},onCopyAllComments:()=>{be.length>0&&Bl()},onDeleteAllComments:()=>{be.length>0&&confirm("Delete all comments?")&&ze()},onShowCommentsList:()=>{M(!0)},onRefresh:()=>{al()}}),Bi=T.useCallback((le,ve,_e,Ne)=>{sl({fileIndex:le,chunkIndex:ve,lineIndex:_e,side:Ne})},[sl]),ul=T.useCallback(()=>{Er(null)},[Er]),xu=T.useCallback(le=>We(le.id),[We]),lo=le=>{le.preventDefault(),B(!0);const ve=le.clientX,_e=x,Ne=$n=>{const Nr=Math.max(av,Math.min(ov,_e+($n.clientX-ve)));w(Nr)},st=()=>{B(!1),document.removeEventListener("mousemove",Ne),document.removeEventListener("mouseup",st)};document.addEventListener("mousemove",Ne),document.addEventListener("mouseup",st)},Cr=T.useCallback(async(le,ve)=>{try{const _e=new URLSearchParams({ignoreWhitespace:String(u)});le&&_e.set("base",le),ve&&_e.set("target",ve);const Ne=await fetch(`/api/diff?${_e}`);if(!Ne.ok)throw new Error("Failed to fetch diff data");const st=await Ne.json();if(r(st),st.baseCommitish&&A(st.baseCommitish),st.targetCommitish&&fe(st.targetCommitish),!de.current){const $n=st.requestedBaseCommitish??st.baseCommitish,Nr=st.requestedTargetCommitish??st.targetCommitish;$n&&Q($n),Nr&&D(Nr)}st.mode&&!s.current&&a(QS(st.mode))}catch(_e){b(_e instanceof Error?_e.message:"Unknown error")}finally{h(!1)}},[u]);T.useEffect(()=>{Cr()},[Cr]),T.useEffect(()=>{ue&&l!=="unified"&&a("unified")},[l,ue]),T.useEffect(()=>{try{window.localStorage.setItem(iv,String(x))}catch{}},[x]),T.useEffect(()=>{fetch("/api/revisions").then(le=>le.ok?le.json():null).then(le=>{O(le),le?.resolvedBase&&A(ve=>ve||le.resolvedBase||""),le?.resolvedTarget&&fe(ve=>ve||le.resolvedTarget||"")}).catch(()=>O(null))},[]);const Fi=T.useCallback(async(le,ve)=>{le===z&&ve===_||(de.current=!0,Q(le),D(ve),h(!0),b(null),await Cr(le,ve))},[z,_,Cr]),zl=T.useRef(!1);T.useEffect(()=>{e?.clearComments&&!zl.current&&(zl.current=!0,ze(),Ft(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[e?.clearComments,ze,Ft]),T.useEffect(()=>{e&&(et.size<e.files.length?$(!1):et.size===e.files.length&&!I&&(L(!0),$(!0),setTimeout(()=>{L(!1)},1e3)))},[et.size,e,I]),T.useEffect(()=>{if(be.length>0){const ve=be.map(Ne=>({id:Ne.id,file:Ne.filePath,line:typeof Ne.position.line=="number"?Ne.position.line:[Ne.position.line.start,Ne.position.line.end],body:Ne.body,timestamp:Ne.createdAt,side:Ne.position.side})),_e=JSON.stringify({comments:ve});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:_e}).catch(Ne=>{console.error("Failed to sync comments:",Ne)})}const le=()=>{if(be.length>0){const ve=be.map(Ne=>({id:Ne.id,file:Ne.filePath,line:typeof Ne.position.line=="number"?Ne.position.line:[Ne.position.line.start,Ne.position.line.end],body:Ne.body,timestamp:Ne.createdAt,side:Ne.position.side})),_e=JSON.stringify({comments:ve});navigator.sendBeacon("/api/comments",_e)}};return window.addEventListener("beforeunload",le),()=>{window.removeEventListener("beforeunload",le)}},[be]),T.useEffect(()=>{const le=new EventSource("/api/heartbeat");return le.onopen=()=>{console.log("Connected to server heartbeat")},le.onerror=()=>{console.log("Server connection lost"),le.close()},()=>{le.close()}},[]);const Ii=T.useCallback((le,ve,_e,Ne,st)=>(ye({filePath:le,body:_e,side:st||"new",line:typeof ve=="number"?ve:{start:ve[0],end:ve[1]},codeSnapshot:Ne?{content:Ne,language:void 0}:void 0}),Promise.resolve()),[ye]),Bl=async()=>{try{const le=qe();await navigator.clipboard.writeText(le),v(!0),setTimeout(()=>v(!1),2e3)}catch(le){console.error("Failed to copy all comments prompt:",le)}},io=le=>{if(!e)return;const ve=Rj(le,e.files);ve&&sl(ve)},Pn=T.useCallback(async(le,ve)=>{try{const _e=await fetch("/api/open-in-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:le,line:ve,editor:he.editor})});if(!_e.ok){const Ne=await _e.json().catch(()=>null);let st=_e.statusText;Ne&&typeof Ne=="object"&&"error"in Ne&&typeof Ne.error=="string"&&(st=Ne.error),console.error("Failed to open file in editor:",st)}}catch(_e){console.error("Failed to open file in editor:",_e)}},[he.editor]),Tt=le=>{sl(null);const ve=le.target,_e=ve.closest('[data-comment-button="true"]'),Ne=ve.closest('[data-open-in-editor-button="true"]');!_e&&!Ne&&It(le)},It=le=>{document.querySelectorAll('form[data-empty="true"]').forEach(_e=>{_e.contains(le.target)||_e.querySelector('button[type="button"]')?.click()})};return f?y.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:y.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):p?y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:p})]}):e?y.jsx(K5,{children:y.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:Tt,children:[y.jsxs("header",{className:`bg-github-bg-secondary border-b border-github-border flex ${ue?"flex-col":"flex-row items-center"}`,children:[y.jsxs("div",{className:`flex items-center justify-between w-full ${ue?"px-3 py-2 gap-3":"px-4 py-3 gap-4 w-auto"} ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:ue?"100%":E?`${x}px`:"auto",minWidth:ue?"0px":E?"200px":"auto",maxWidth:ue?"none":E?"600px":"none"},children:[y.jsx("h1",{children:y.jsx(ej,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("button",{onClick:()=>C(!E),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:E?"Collapse file tree":"Expand file tree","aria-expanded":E,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:E?y.jsx(DS,{size:18}):y.jsx(MS,{size:18})}),y.jsx("button",{onClick:()=>N(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:y.jsx(Zx,{size:18})})]})]}),!ue&&y.jsx("div",{className:`border-r border-github-border ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),y.jsxs("div",{className:`flex-1 flex flex-wrap items-center justify-between ${ue?"px-3 pb-2 gap-3":"px-4 py-3 gap-4"}`,children:[y.jsxs("div",{className:`flex flex-wrap items-center ${ue?"gap-2":"gap-3"}`,children:[!ue&&y.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[y.jsxs("button",{onClick:()=>me("split"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="split"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(sS,{size:14}),"Split"]}),y.jsxs("button",{onClick:()=>me("unified"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${l==="unified"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[y.jsx(GS,{size:14}),"Unified"]})]}),y.jsx(Qx,{checked:u,onChange:c,label:"Ignore Whitespace",title:u?"Show whitespace changes":"Ignore whitespace changes"}),y.jsx(tj,{shouldReload:Ml,isReloading:qn.isReloading,onReload:al,changeType:qn.lastChangeType,compact:ue})]}),y.jsxs("div",{className:`flex flex-wrap items-center text-sm text-github-text-secondary ${ue?"gap-3":"gap-4"}`,children:[!ue&&be.length>0&&y.jsx(Bb,{commentsCount:be.length,isCopiedAll:g,onCopyAll:Bl,onDeleteAll:ze,onViewAll:()=>M(!0)}),y.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[y.jsxs("div",{className:"text-xs relative",children:[et.size===e.files.length?"All diffs difit-ed!":`${et.size} / ${e.files.length} files viewed`,y.jsx(oj,{isActive:q})]}),y.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:y.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(e.files.length-et.size)/e.files.length*100}%`,backgroundColor:(()=>{const le=(e.files.length-et.size)/e.files.length*100;return le>50?"var(--color-github-accent)":le>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),F?y.jsx(XE,{options:F,baseRevision:z,targetRevision:_,resolvedBaseRevision:H,resolvedTargetRevision:re,onSelectDiff:(le,ve)=>{Fi(le,ve)},onOpenAdvanced:()=>Y(!0),compact:!xe}):y.jsxs("span",{className:"text-xs",children:["Reviewing:"," ",y.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:e.commit.includes("...")?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"text-github-text-secondary font-medium",children:[e.commit.split("...")[0],"..."]}),y.jsx("span",{className:"font-medium",children:e.commit.split("...")[1]})]}):e.commit})]})]})]})]}),F&&y.jsx(nj,{isOpen:V,onClose:()=>Y(!1),options:F,baseRevision:z,targetRevision:_,resolvedBaseRevision:H,resolvedTargetRevision:re,onApply:(le,ve)=>{Fi(le,ve)}},V?`${z}:${_}`:"closed"),ue&&E&&y.jsx("button",{type:"button","aria-label":"Close file tree",className:"fixed inset-0 bg-black/40 z-30",onClick:()=>C(!1)}),y.jsxs("div",{className:"flex flex-1 overflow-hidden relative",children:[y.jsx("div",{className:`relative overflow-hidden ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:ue?"0px":E?`${x}px`:"0px"},children:y.jsxs("aside",{id:"file-tree-panel",className:`bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col ${ue?"fixed inset-y-0 left-0 z-40 w-[min(85vw,360px)] transition-transform duration-300 ease-out":"relative"}`,style:{width:ue?"min(85vw, 360px)":`${x}px`,minWidth:ue?"0px":"200px",maxWidth:ue?"none":"600px",height:"100%",transform:ue?E?"translateX(0)":"translateX(-100%)":void 0},children:[y.jsx("div",{className:"flex-1 overflow-y-auto",children:y.jsx(K8,{files:e.files,onScrollToFile:le=>{const ve=document.getElementById(yd(le));ve&&ve.scrollIntoView({behavior:"smooth",block:"start"})},comments:be.map(le=>({id:le.id,file:le.filePath,line:typeof le.position.line=="number"?le.position.line:[le.position.line.start,le.position.line.end],body:le.body,timestamp:le.createdAt,codeContent:le.codeSnapshot?.content})),reviewedFiles:et,onToggleReviewed:tt,selectedFileIndex:Cn?.fileIndex??null})}),!ue&&y.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[y.jsxs("button",{onClick:()=>ro(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[y.jsx(NS,{size:16}),y.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),y.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[y.jsx("span",{className:"text-sm",children:"Star on GitHub"}),y.jsx(J8,{style:{height:"18px",width:"18px"}})]})]})]})}),!ue&&y.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${j?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px"},onMouseDown:lo,title:"Drag to resize file list"}),y.jsx("main",{className:`flex-1 overflow-y-auto ${pt?"pb-16":""}`,children:e.files.map((le,ve)=>{const _e=bt.get(le.path)??Lj,Ne=Ze.get(le.path)??Dj;return y.jsx("div",{id:yd(le.path),className:"mb-6",children:y.jsx(Z8,{file:le,comments:_e,diffMode:l,reviewedFiles:et,onToggleReviewed:tt,collapsedFiles:J,onToggleCollapsed:kr,onToggleAllCollapsed:ae,onAddComment:Ii,onGeneratePrompt:xu,onRemoveComment:ke,onUpdateComment:Ce,onOpenInEditor:he.editor==="none"?void 0:Pn,syntaxTheme:he.syntaxTheme,baseCommitish:e.baseCommitish,targetCommitish:e.targetCommitish,cursor:Cn?.fileIndex===ve?Cn:null,fileIndex:ve,onLineClick:Bi,commentTrigger:no?.fileIndex===ve?no:null,onCommentTriggerHandled:ul,mergedChunks:Ne,expandLines:Me,expandAllBetweenChunks:Ge,prefetchFileContent:Yt,isExpandLoading:je})},le.path)})})]}),pt&&y.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-20 bg-github-bg-secondary border-t border-github-border px-4 py-2 flex justify-end",children:y.jsx(Bb,{commentsCount:be.length,isCopiedAll:g,onCopyAll:Bl,onDeleteAll:ze,onViewAll:()=>M(!0),direction:"up",compact:!0})}),y.jsx(aj,{isOpen:S,onClose:()=>N(!1),settings:he,onSettingsChange:ge}),y.jsx(W8,{isOpen:ol,onClose:()=>ro(!1)}),y.jsx(KS,{isOpen:G,onClose:()=>M(!1),onNavigate:io,comments:be.map(le=>({id:le.id,file:le.filePath,line:typeof le.position.line=="number"?le.position.line:[le.position.line.start,le.position.line.end],body:le.body,timestamp:le.createdAt,codeContent:le.codeSnapshot?.content})),onRemoveComment:ke,onGeneratePrompt:le=>We(le.id),onUpdateComment:Ce})]})}):y.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[y.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),y.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const sv=document.getElementById("root");if(!sv)throw new Error("Root element not found");T2.createRoot(sv).render(y.jsx(Kt.StrictMode,{children:y.jsx(U2,{initiallyActiveScopes:["navigation"],children:y.jsx(Mj,{})})}));export{Ws as g};
|